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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。