This documentation is archived and is not being maintained.

SortFieldList::IndexOf Method

Gets the index, in this list, of the specified SortField instance.

Namespace:  Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly:  Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)

public:
int IndexOf(
	SortField^ sortField
)

Parameters

sortField
Type: Microsoft.TeamFoundation.WorkItemTracking.Client::SortField

The SortField of which the index is desired.

Return Value

Type: System::Int32
The index of the specified SortField, if found; otherwise, -1.

ExceptionCondition
ArgumentNullException

The sortField parameter is null.

Show: