Partager via


SortFieldList.IndexOfFieldId Method

Gets the index, in this list, of the SortField that has the specified field ID.

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

Syntax

'Declaration
Public Function IndexOfFieldId ( _
    id As Integer _
) As Integer
public int IndexOfFieldId(
    int id
)
public:
int IndexOfFieldId(
    int id
)
member IndexOfFieldId : 
        id:int -> int
public function IndexOfFieldId(
    id : int
) : int

Parameters

Return Value

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

Exceptions

Exception Condition
ArgumentNullException

The id parameter is null.

.NET Framework Security

See Also

Reference

SortFieldList Class

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace