SaveChangesOptions 枚举

应用到: CRM 2015 on-prem, CRM Online

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

命名空间: Microsoft.Xrm.Sdk.Client
程序集: Microsoft.Xrm.Sdk (在 Microsoft.Xrm.Sdk.dll 中)

语法

声明
<FlagsAttribute> _
Public Enumeration SaveChangesOptions
[FlagsAttribute] 
public enum SaveChangesOptions

成员

成员名称 描述
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.

备注

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.

平台

开发平台

Windows Vista、Windows Server 2003 和

目标平台

Windows Vista,Windows XP

另请参阅

参考

Microsoft.Xrm.Sdk.Client 命名空间

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