Επεξεργασία

Κοινή χρήση μέσω


IListContract<T>.GetItem(Int32) Method

Definition

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

Parameters

index
Int32

The zero-based index of the item to get.

Returns

T

The item at the specified index.

Exceptions

index is less than zero.

-or-

index is equal to or greater than the return value of GetCount().

Remarks

The GetItem method does not remove the item at the specified index. To remove an item from the IListContract<T> collection, use the RemoveAt method.

Applies to