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
- workItem
Type: Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem
- lockToken
Type: System.Object
Return Value
Type: Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.IWorkItemDocument
Returns IWorkItemDocument.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.TeamFoundation.WorkItemTracking Namespace