This documentation is archived and is not being maintained.
WorkItemLinkCollection::IndexOf Method
Visual Studio 2013
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)
Parameters
- link
- Type: Microsoft.TeamFoundation.WorkItemTracking.Client::WorkItemLink
The WorkItemLink for which the index is desired.
Return Value
Type: System::Int32The index of the specified WorkItemLink. Returns -1 if the specified link does not occur in this collection.
| Exception | Condition |
|---|---|
| ArgumentNullException | The link parameter was null. |
- 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.
Show: