ISession.AssociateWorkItem Method
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
'Declaration
Sub AssociateWorkItem ( _
workItem As WorkItem _
)
void AssociateWorkItem(
WorkItem workItem
)
void AssociateWorkItem(
WorkItem^ workItem
)
abstract AssociateWorkItem :
workItem:WorkItem -> unit
function AssociateWorkItem(
workItem : 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.
.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.