OrganizationServiceContext.SaveChanges Method

Definition

Overloads

SaveChanges()

Saves the changes that the OrganizationServiceContext is tracking to Microsoft Dynamics 365.

SaveChanges(SaveChangesOptions)

Saves the changes that the OrganizationServiceContext is tracking to Microsoft Dynamics 365.

SaveChanges()

Saves the changes that the OrganizationServiceContext is tracking to Microsoft Dynamics 365.

public:
 Microsoft::Xrm::Sdk::SaveChangesResultCollection ^ SaveChanges();
public Microsoft.Xrm.Sdk.SaveChangesResultCollection SaveChanges ();
member this.SaveChanges : unit -> Microsoft.Xrm.Sdk.SaveChangesResultCollection
Public Function SaveChanges () As SaveChangesResultCollection

Returns

SaveChangesResultCollection

Type: SaveChangesResultCollectionA SaveChangesResultCollection that contains status, headers, and errors that result from the call to SaveChanges().

Applies to

SaveChanges(SaveChangesOptions)

Saves the changes that the OrganizationServiceContext is tracking to Microsoft Dynamics 365.

public:
 Microsoft::Xrm::Sdk::SaveChangesResultCollection ^ SaveChanges(Microsoft::Xrm::Sdk::Client::SaveChangesOptions options);
public Microsoft.Xrm.Sdk.SaveChangesResultCollection SaveChanges (Microsoft.Xrm.Sdk.Client.SaveChangesOptions options);
member this.SaveChanges : Microsoft.Xrm.Sdk.Client.SaveChangesOptions -> Microsoft.Xrm.Sdk.SaveChangesResultCollection
Public Function SaveChanges (options As SaveChangesOptions) As SaveChangesResultCollection

Parameters

options
SaveChangesOptions

Type: SaveChangesOptions. Indicates how changes are saved.

Returns

SaveChangesResultCollection

Type: SaveChangesResultCollectionA SaveChangesResultCollection that contains status, headers, and errors that result from the call to SaveChanges().

Applies to