SaveChangesOptions Enumeration

 

Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Describes how the SaveChanges method behaves when an error occurs while updating data in Microsoft Dynamics 365.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:   Microsoft.Xrm.Sdk.Client
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

[FlagsAttribute]
public enum SaveChangesOptions

Member nameDescription
ContinueOnError

The SaveChanges method should continue applying changes to tracked entities in Microsoft Dynamics 365 even if an action fails. Value = 1.

None

The SaveChanges method should throw an exception when an error occurs while updating data in Microsoft Dynamics 365. Value = 0.

The SaveChanges method applies changes to tracked entities in Microsoft Dynamics 365. If an error occurs while performing these updates, this enumeration indicates to the OrganizationServiceContext how it should handle errors. If the value is set to None and an error occurs, an exception is thrown with the SaveChangesResultCollection attached.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Community Additions

ADD
Show: