Share via


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)

Syntax

'Declaration
Public Function IndexOf ( _
    sortField As SortField _
) As Integer
public int IndexOf(
    SortField sortField
)
public:
int IndexOf(
    SortField^ sortField
)
member IndexOf : 
        sortField:SortField -> int
public function IndexOf(
    sortField : SortField
) : int

Parameters

Return Value

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

Exceptions

Exception Condition
ArgumentNullException

The sortField parameter is null.

.NET Framework Security

See Also

Reference

SortFieldList Class

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace