Partager via


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

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

See Also

Reference

WorkItemLinkCollection Class

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace