OneOrMany<T>::Item Property (Int32)

Visual Studio 2015
 

Gets the element at the specified index in the collection.

Namespace:   Microsoft.VisualStudio.Utilities
Assembly:  Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)

public:
property T default[
	int index
] {
	T get(int index);
}

Parameters

index
Type: System::Int32

The zero-based index of the item requested.

Property Value

Type: T

The item at position index in the collection.

Exception Condition
ArgumentOutOfRangeException

The index is negative or past than the end of the collection.

Return to top
Show: