Partager via


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

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

See Also

Reference

ISession Interface

Microsoft.TeamFoundation.TestManagement.Client Namespace