FreezableCollection<T>.Item[Int32] Eigenschaft
Definition
Ruft das Element am angegebenen Index ab oder legt dieses fest.Gets or sets the element at the specified index.
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
Parameter
- index
- Int32
Der nullbasierte Index des Elements, das abgerufen oder festgelegt werden soll.The zero-based index of the element to get or set.
Eigenschaftswert
Das Element am angegebenen Index.The element at the specified index.
Implementiert
Ausnahmen
index
ist kleiner als 0.index
is less than 0.
- oder --or-
index
ist größer oder gleich Count.index
is equal to or greater than Count.
Das angegebene Element ist null
.The specified element is null
.
Es wird versucht, ein Element in der Auflistung festzulegen, wenn die Auflistung fixiert ist (ihre IsFrozen-Eigenschaft ist true
).Attempting to set an item in the collection when the collection is frozen (its IsFrozen property is true
).