Enumeración de SaveChangesOptions
Se aplica a: CRM 2015 on-prem, CRM Online
Describes how the SaveChanges method behaves when an error occurs while updating data in Microsoft Dynamics CRM.
Espacio de nombres: Microsoft.Xrm.Sdk.Client
Ensamblado: Microsoft.Xrm.Sdk (en Microsoft.Xrm.Sdk.dll)
Sintaxis
'Declaración
<FlagsAttribute> _
Public Enumeration SaveChangesOptions
[FlagsAttribute]
public enum SaveChangesOptions
Integrantes
Nombre del miembro | Descripción |
---|---|
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. |
Comentarios
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.
Plataformas
Plataformas de desarrollo
Windows Vista, Windows Server 2003 y
Plataformas de destino
Windows Vista,Windows XP
Vea también
Referencia
Espacio de nombres de Microsoft.Xrm.Sdk.Client
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.