Delen via


DocumentService.GetWorkItem Method (TeamFoundationServer, Int32, Object)

Note: This API is now obsolete.

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

Syntax

'Declaration
<ObsoleteAttribute("The TeamFoundationServer class is obsolete and so is this method. Use the overload of this method that takes a TfsTeamProjectCollection object instead.")> _
Public Function GetWorkItem ( _
    teamFoundationServer As TeamFoundationServer, _
    workItemId As Integer, _
    lockToken As Object _
) As IWorkItemDocument
[ObsoleteAttribute("The TeamFoundationServer class is obsolete and so is this method. Use the overload of this method that takes a TfsTeamProjectCollection object instead.")]
public IWorkItemDocument GetWorkItem(
    TeamFoundationServer teamFoundationServer,
    int workItemId,
    Object lockToken
)
[ObsoleteAttribute(L"The TeamFoundationServer class is obsolete and so is this method. Use the overload of this method that takes a TfsTeamProjectCollection object instead.")]
public:
IWorkItemDocument^ GetWorkItem(
    TeamFoundationServer^ teamFoundationServer, 
    int workItemId, 
    Object^ lockToken
)
[<ObsoleteAttribute("The TeamFoundationServer class is obsolete and so is this method. Use the overload of this method that takes a TfsTeamProjectCollection object instead.")>]
member GetWorkItem : 
        teamFoundationServer:TeamFoundationServer * 
        workItemId:int * 
        lockToken:Object -> IWorkItemDocument
public function GetWorkItem(
    teamFoundationServer : TeamFoundationServer, 
    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