DocumentService.CreateWorkItem Method (WorkItem, Object)

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

Syntax

'Declaration
Public Function CreateWorkItem ( _
    workItem As WorkItem, _
    lockToken As Object _
) As IWorkItemDocument
public IWorkItemDocument CreateWorkItem(
    WorkItem workItem,
    Object lockToken
)
public:
IWorkItemDocument^ CreateWorkItem(
    WorkItem^ workItem, 
    Object^ lockToken
)
member CreateWorkItem : 
        workItem:WorkItem * 
        lockToken:Object -> IWorkItemDocument
public function CreateWorkItem(
    workItem : WorkItem, 
    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