This documentation is archived and is not being maintained.

WorkItemLink Constructor (WorkItemLinkTypeEnd, Int32)

Initializes a new instance of the WorkItemLink class from the specified WorkItemLinkTypeEnd and target ID.

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

public:
WorkItemLink(
	WorkItemLinkTypeEnd^ linkTypeEnd, 
	int targetId
)

Parameters

linkTypeEnd
Type: Microsoft.TeamFoundation.WorkItemTracking.Client::WorkItemLinkTypeEnd

The WorkItemLinkTypeEnd that defines the link.

targetId
Type: System::Int32

The ID of the target WorkItem.

The SourceId property is set to 0.

Show: