다음을 통해 공유


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)

Syntax

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

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

WorkItemCollection Class

IndexOf Overload

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace