Get or set a value at the specified index

Namespace: Contracts
Assembly: Contracts (in Contracts.dll)

Public Property Item( _ 
ByVal i As Integer
) As String
This language is not supported or no code example is available.
public string this[ 
int i 
] {get; set;}
This language is not supported or no code example is available.
public:  
property String^ Item[int] { 
String^ get( 
int i 
); 
void set( 
int i
String^ value 
); 
}
This language is not supported or no code example is available.
JScript suports the use of indexed properties, but not the declaration of new ones.
This language is not supported or no code example is available.

Parameters

i
Type: int

<default>

Property Value

Type: string

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1