Delen via


DocumentService.CreateWorkItem Method (TfsTeamProjectCollection, String, String, Object)

Namespace:  Microsoft.VisualStudio.TeamFoundation.WorkItemTracking
Assembly:  Microsoft.VisualStudio.TeamFoundation.WorkItemTracking (in Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.dll)

Syntax

'Declaration
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
)
public:
IWorkItemDocument^ CreateWorkItem(
    TfsTeamProjectCollection^ teamProjectCollection, 
    String^ teamProjectName, 
    String^ workItemTypeName, 
    Object^ lockToken
)
member CreateWorkItem : 
        teamProjectCollection:TfsTeamProjectCollection * 
        teamProjectName:string * 
        workItemTypeName:string * 
        lockToken:Object -> IWorkItemDocument
public function CreateWorkItem(
    teamProjectCollection : TfsTeamProjectCollection, 
    teamProjectName : String, 
    workItemTypeName : String, 
    lockToken : Object
) : IWorkItemDocument

Parameters

Return Value

Type: Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.IWorkItemDocument
Returns IWorkItemDocument.

.NET Framework Security

See Also

Reference

DocumentService Class

CreateWorkItem Overload

Microsoft.VisualStudio.TeamFoundation.WorkItemTracking Namespace