This documentation is archived and is not being maintained.

WorkItemCollection::IndexOf Method (WorkItem)

Gets the index of a WorkItem in this collection.

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

public:
int IndexOf(
	WorkItem^ value
)

Parameters

value
Type: Microsoft.TeamFoundation.WorkItemTracking.Client::WorkItem

The WorkItem of which the index is desired.

Return Value

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

Show: