Vector<T>.Item[Int32] Vlastnost

Definice

Gets the element at a specified index.Gets the element at a specified index.

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

Parametry

index
Int32

The index of the element to return.The index of the element to return.

Hodnota vlastnosti

T

The element at index index.The element at index index.

Výjimky

Hodnota index je menší než nula.index is less than zero.

-nebo--or- index is greater than or equal to Count.index is greater than or equal to Count.

Platí pro