Vector<T>.Item[Int32] Propriedade
Definição
Obtém o elemento em um índice especificado.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
Parâmetros
- index
- Int32
O índice do elemento a ser retornado.The index of the element to return.
Valor da propriedade
- T
O elemento no índice index .The element at index index.
Exceções
index é menor que zero.index is less than zero.
- ou --or-
index é maior ou igual a Count.index is greater than or equal to Count.
.NET 5.0 e posteriores: não há suporte para o tipo T..NET 5.0 and later: Type T is not supported.