IListContract<T>.GetItem(Int32) Método
Definição
Retorna o item no índice especificado de uma coleção IListContract<T>.Returns the item at the specified index of an IListContract<T> collection.
public:
T GetItem(int index);
public T GetItem (int index);
abstract member GetItem : int -> 'T
Public Function GetItem (index As Integer) As T
Parâmetros
- index
- Int32
O índice de base zero do item a ser obtido.The zero-based index of the item to get.
Retornos
- T
O item no índice especificado.The item at the specified index.
Exceções
index é menor que zero.index is less than zero.
- ou --or-
index é igual ou maior que o valor retornado de GetCount().index is equal to or greater than the return value of GetCount().
Comentários
O GetItem método não remove o item no índice especificado.The GetItem method does not remove the item at the specified index. Para remover um item da IListContract<T> coleção, use o RemoveAt método.To remove an item from the IListContract<T> collection, use the RemoveAt method.