DocumentService.CreateWorkItem 方法 (TfsTeamProjectCollection, String, String, Object)
命名空间: Microsoft.VisualStudio.TeamFoundation.WorkItemTracking
程序集: Microsoft.VisualStudio.TeamFoundation.WorkItemTracking(在 Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.dll 中)
语法
声明
Public Function CreateWorkItem ( _
teamProjectCollection As TfsTeamProjectCollection, _
teamProjectName As String, _
workItemTypeName As String, _
lockToken As Object _
) As IWorkItemDocument
public IWorkItemDocument CreateWorkItem(
TfsTeamProjectCollection teamProjectCollection,
string teamProjectName,
string workItemTypeName,
Object lockToken
)
参数
- teamProjectCollection
类型:Microsoft.TeamFoundation.Client.TfsTeamProjectCollection
- teamProjectName
类型:System.String
- workItemTypeName
类型:System.String
- lockToken
类型:System.Object
返回值
类型:Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.IWorkItemDocument
返回 IWorkItemDocument。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。