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)
Syntax
'Déclaration
Public Sub New ( _
linkTypeEnd As WorkItemLinkTypeEnd, _
targetId As Integer _
)
public WorkItemLink(
WorkItemLinkTypeEnd linkTypeEnd,
int targetId
)
public:
WorkItemLink(
WorkItemLinkTypeEnd^ linkTypeEnd,
int targetId
)
new :
linkTypeEnd:WorkItemLinkTypeEnd *
targetId:int -> WorkItemLink
public function WorkItemLink(
linkTypeEnd : WorkItemLinkTypeEnd,
targetId : int
)
Parameters
- linkTypeEnd
Type: Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemLinkTypeEnd
The WorkItemLinkTypeEnd that defines the link.
- targetId
Type: System.Int32
The ID of the target WorkItem.
Remarks
The SourceId property is set to 0.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.