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
sortField
Type: Microsoft.TeamFoundation.WorkItemTracking.Client.SortFieldThe SortField of which the index is desired.
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
- 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.