This documentation is archived and is not being maintained.

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)

public:
int IndexOf(
	WorkItemLink^ link
)

Parameters

link
Type: Microsoft.TeamFoundation.WorkItemTracking.Client::WorkItemLink

The 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.

ExceptionCondition
ArgumentNullException

The link parameter was null.

Show: