This documentation is archived and is not being maintained.
WorkItemCollection::IndexOf Method (Int32)
Visual Studio 2013
Gets the index of the WorkItem that has the specified ID.
Namespace: Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly: Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)
Parameters
- id
- Type: System::Int32
The ID of the WorkItem in this collection.
Return Value
Type: System::Int32The index of the WorkItem in the collection. Returns -1 if no match is found.
- 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: