共用方式為


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
)

參數

傳回值

類型:Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.IWorkItemDocument
傳回 IWorkItemDocument

.NET Framework 安全性

請參閱

參考

DocumentService 類別

CreateWorkItem 多載

Microsoft.VisualStudio.TeamFoundation.WorkItemTracking 命名空間