Udostępnij za pośrednictwem


DataServiceContext.SaveChanges Method (SaveChangesOptions)

Saves the changes that the DataServiceContext is tracking to storage.

Not supported by the WCF Data Services 5.0 client for Silverlight.

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

Syntax

'Declaration
Public Function SaveChanges ( _
    options As SaveChangesOptions _
) As DataServiceResponse
'Usage
Dim instance As DataServiceContext 
Dim options As SaveChangesOptions 
Dim returnValue As DataServiceResponse 

returnValue = instance.SaveChanges(options)
public DataServiceResponse SaveChanges(
    SaveChangesOptions options
)
public:
DataServiceResponse^ SaveChanges(
    SaveChangesOptions options
)
member SaveChanges : 
        options:SaveChangesOptions -> DataServiceResponse
public function SaveChanges(
    options : SaveChangesOptions
) : DataServiceResponse

Parameters

Return Value

Type: System.Data.Services.Client.DataServiceResponse
A DataServiceResponse that contains status, headers, and errors that result from the call to SaveChanges.

Remarks

Operations are sent to the data service in the order in which they are reported to the DataServiceContext.

See Also

Reference

DataServiceContext Class

SaveChanges Overload

System.Data.Services.Client Namespace