This documentation is archived and is not being maintained.

WorkItemCollection::IndexOf Method (Int32)

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)

public:
int IndexOf(
	int id
)

Parameters

id
Type: System::Int32

The ID of the WorkItem in this collection.

Return Value

Type: System::Int32
The index of the WorkItem in the collection. Returns -1 if no match is found.

Show: