This documentation is archived and is not being maintained.

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)

public:
int Add(
	WorkItemLink^ link
)

Parameters

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

The WorkItemLink to add to this collection.

Return Value

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

ExceptionCondition
ArgumentNullException

The link parameter was null.

InvalidOperationException

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

Show: