This documentation is archived and is not being maintained.
WorkItemStore::BatchSave Method (array<WorkItem>, SaveFlags)
Visual Studio 2013
Commits multiple items in a branch and returns a list of errors if one or more items fail.
Namespace: Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly: Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)
public: array<BatchSaveError^>^ BatchSave( array<WorkItem^>^ workitems, SaveFlags saveFlags )
Parameters
- workitems
- Type: array<Microsoft.TeamFoundation.WorkItemTracking.Client::WorkItem>
An array of work items to commit.
- saveFlags
- Type: Microsoft.TeamFoundation.WorkItemTracking.Client::SaveFlags
If set to SaveFlags.MergeLinks, the method does not return errors for "link being added already exists" or "link being removed already removed" scenarios.
Return Value
Type: array<Microsoft.TeamFoundation.WorkItemTracking.Client::BatchSaveError>An array of errors that result from the save.
- 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.
Show: