IListContract<C>.GetItem(Int32) Método
Definição
Retorna o elemento no índice especificado.Returns the element at the specified index.
public:
C GetItem(int index);
public C GetItem (int index);
abstract member GetItem : int -> 'C
Public Function GetItem (index As Integer) As C
Parâmetros
- index
- Int32
O índice baseado em zero do elemento a ser obtido.The zero-based index of the element to get.
Retornos
- C
O elemento no índice especificado.The element 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 elemento no índice especificado.The GetItem method does not remove the element at the specified index. Para remover um elemento do IListContract<C> , use o RemoveAt método.To remove an element from the IListContract<C>, use the RemoveAt method.