FreezableCollection<T>.Item[Int32] Właściwość

Definicja

Pobiera lub ustawia element pod określonym indeksem.

public:
 property T default[int] { T get(int index); void set(int index, T value); };
public T this[int index] { get; set; }
member this.Item(int) : 'T with get, set
Default Public Property Item(index As Integer) As T

Parametry

index
Int32

Liczony od zera indeks elementu do pobrania lub ustawienia.

Wartość właściwości

T

Element pod określonym indeksem.

Implementuje

Wyjątki

index wartość jest mniejsza niż 0.

-lub-

index jest równe lub większe niż Count.

Określony element to null.

Próba ustawienia elementu w kolekcji, gdy kolekcja jest zamrożona (jej IsFrozen właściwość to true).

Dotyczy