This documentation is archived and is not being maintained.
SortFieldList::IndexOfFieldId Method
Visual Studio 2013
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)
Parameters
- id
- Type: System::Int32
The field ID of the desired SortField instance in this list.
Return Value
Type: System::Int32The index of the SortField that has the specified field ID, if found; otherwise, -1.
| Exception | Condition |
|---|---|
| ArgumentNullException | The id parameter is null. |
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Show: