DocumentService.GetWorkItem 方法 (TeamFoundationServer, Int32, Object)

注意:此 API 现在已废弃不用。

命名空间:  Microsoft.VisualStudio.TeamFoundation.WorkItemTracking
程序集:  Microsoft.VisualStudio.TeamFoundation.WorkItemTracking(在 Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.dll 中)

语法

声明
<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
)

参数

返回值

类型:Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.IWorkItemDocument
返回 IWorkItemDocument

.NET Framework 安全性

请参阅

参考

DocumentService 类

GetWorkItem 重载

Microsoft.VisualStudio.TeamFoundation.WorkItemTracking 命名空间