Partager via


Énumération SaveChangesOptions

S'applique à: CRM 2015 on-prem, CRM Online

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

Espace de noms: Microsoft.Xrm.Sdk.Client
Assembly: Microsoft.Xrm.Sdk (dans Microsoft.Xrm.Sdk.dll)

Syntaxe

'Déclaration
<FlagsAttribute> _
Public Enumeration SaveChangesOptions
[FlagsAttribute] 
public enum SaveChangesOptions

Membres

Nom du membre Description
ContinueOnError The SaveChanges method should continue applying changes to tracked entities in Microsoft Dynamics CRM 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 CRM. Value = 0.

Remarques

The SaveChanges method applies changes to tracked entities in Microsoft Dynamics CRM. 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.

Plateformes

Plateformes de développement

Windows Vista, Windows Server 2003 et

Plateformes cibles

Windows Vista,Windows XP

Voir aussi

Référence

Espace de noms Microsoft.Xrm.Sdk.Client

Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.