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
'Dichiarazione
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
- 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.
.NET Framework Security
- 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.