Partilhar via


WorkItemLinkCollection.Add Method

Adds the specified WorkItemLink to this collection.

Namespace:  Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly:  Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)

Syntax

'Declaration
Public Function Add ( _
    link As WorkItemLink _
) As Integer
public int Add(
    WorkItemLink link
)
public:
int Add(
    WorkItemLink^ link
)
member Add : 
        link:WorkItemLink -> int
public function Add(
    link : WorkItemLink
) : int

Parameters

Return Value

Type: System.Int32
The index in this collection of the newly added WorkItemLink.

Exceptions

Exception Condition
ArgumentNullException

The link parameter was null.

InvalidOperationException

The object that is specified in the link parameter already occurs in this collection.

.NET Framework Security

See Also

Reference

WorkItemLinkCollection Class

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace