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
- teamProjectCollection
Type: Microsoft.TeamFoundation.Client.TfsTeamProjectCollection
- workItemId
Type: System.Int32
- lockToken
Type: System.Object
Return Value
Type: Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.IWorkItemDocument
Returns IWorkItemDocument.
.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.
See Also
Reference
Microsoft.VisualStudio.TeamFoundation.WorkItemTracking Namespace