IListContract<T>.GetItem Method (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
)

Parameters

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
IndexOutOfRangeException

index is less than zero.

-or-

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
Show: