Saves any pending changes on this work item.
Namespace:  Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly:  Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)
Syntax
声明
Public Sub Save ( _
    saveFlags As SaveFlags _
)
public void Save(
    SaveFlags saveFlags
)
public:
void Save(
    SaveFlags saveFlags
)
member Save : 
        saveFlags:SaveFlags -> unit 
public function Save(
    saveFlags : SaveFlags
)
Parameters
- saveFlags
 Type: Microsoft.TeamFoundation.WorkItemTracking.Client.SaveFlags
 If set to SaveFlags.MergeLinks, does not return errors if the link that is being added already exists or the link that is being removed was already removed.
Exceptions
| Exception | Condition | 
|---|---|
| ValidationException | Thrown when at least one field in this WorkItem instance has data that is not valid. | 
.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.