IListContract<T>.GetItem Method (Int32)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Returns the item at the specified index of an IListContract<T> collection.

Namespace:   System.AddIn.Contract
Assembly:  System.AddIn.Contract (in System.AddIn.Contract.dll)

T GetItem(
	int index


Type: System.Int32

The zero-based index of the item to get.

Return Value

Type: T

The item at the specified index.

Exception Condition

index is less than zero.


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

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.

.NET Framework
Available since 3.5
Return to top