다음을 통해 공유


SaveChangesOptions Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Indicates change options when BeginSaveChanges is called.

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

Namespace:  System.Data.Services.Client
Assembly:  System.Data.Services.Client (in System.Data.Services.Client.dll)

Syntax

'Declaration
<FlagsAttribute> _
Public Enumeration SaveChangesOptions
[FlagsAttribute]
public enum SaveChangesOptions

Members

Member name Description
None Pending changes are saved using multiple requests to the server, but the operation stops on the first failure (default).
Batch All pending changes are saved in a single batch request.
ContinueOnError Pending changes are saved using multiple requests to the server, and the operation continues after an error occurs
ReplaceOnUpdate Pending updates are made by replacing all values of the entity in the data source with values from the updated entity.

Remarks

When the ContinueOnError option is set, subsequent operations are still tried even after an error occurs.

When batching is not used, the BatchHeaders property on the DataServiceResponse instance returns an empty collection and the BatchStatusCode property is zero.

You cannot set both Batch and ContinueOnError at the same time.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.