Partager via


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)

Syntax

'Declaration
Public Function IndexOf ( _
    value As WorkItem _
) As Integer
public int IndexOf(
    WorkItem value
)
public:
int IndexOf(
    WorkItem^ value
)
member IndexOf : 
        value:WorkItem -> int
public function IndexOf(
    value : WorkItem
) : int

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

WorkItemCollection Class

IndexOf Overload

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace