Share via


DocumentService.GetWorkItem Method (TfsTeamProjectCollection, Int32, Object)

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

Syntax

'Declaration
Public Function GetWorkItem ( _
    teamProjectCollection As TfsTeamProjectCollection, _
    workItemId As Integer, _
    lockToken As Object _
) As IWorkItemDocument
public IWorkItemDocument GetWorkItem(
    TfsTeamProjectCollection teamProjectCollection,
    int workItemId,
    Object lockToken
)
public:
IWorkItemDocument^ GetWorkItem(
    TfsTeamProjectCollection^ teamProjectCollection, 
    int workItemId, 
    Object^ lockToken
)
member GetWorkItem : 
        teamProjectCollection:TfsTeamProjectCollection * 
        workItemId:int * 
        lockToken:Object -> IWorkItemDocument
public function GetWorkItem(
    teamProjectCollection : TfsTeamProjectCollection, 
    workItemId : int, 
    lockToken : Object
) : IWorkItemDocument

Parameters

Return Value

Type: Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.IWorkItemDocument
Returns IWorkItemDocument.

.NET Framework Security

See Also

Reference

DocumentService Class

GetWorkItem Overload

Microsoft.VisualStudio.TeamFoundation.WorkItemTracking Namespace