ISession.AssociateWorkItem Method (WorkItem)
Associates the given work item with this session.
Namespace: Microsoft.TeamFoundation.TestManagement.Client
Assembly: Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)
Syntax
void AssociateWorkItem(
WorkItem workItem
)
void AssociateWorkItem(
WorkItem^ workItem
)
abstract AssociateWorkItem :
workItem:WorkItem -> unit
Sub AssociateWorkItem (
workItem As WorkItem
)
Parameters
workItem
Type: Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemWork item to associate.
Remarks
The work item must be presaved in order to have a valid URI to be stored with the session. You must also call workItem.Save() after you call this method for the session's link to be persisted to the server.
See Also
ISession Interface
Microsoft.TeamFoundation.TestManagement.Client Namespace
Return to top