WorkItemLinkCollection.IndexOf Method
Gets the index in this collection of the specified WorkItemLink.
Namespace: Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly: Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)
Syntax
'Declaration
Public Function IndexOf ( _
link As WorkItemLink _
) As Integer
public int IndexOf(
WorkItemLink link
)
public:
int IndexOf(
WorkItemLink^ link
)
member IndexOf :
link:WorkItemLink -> int
public function IndexOf(
link : WorkItemLink
) : int
Parameters
link
Type: Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemLinkThe WorkItemLink for which the index is desired.
Return Value
Type: System.Int32
The index of the specified WorkItemLink. Returns -1 if the specified link does not occur in this collection.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The link parameter was null. |
.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.