Share via


DataServiceContext.SaveChanges Method

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 As DataServiceResponse
'Usage
Dim instance As DataServiceContext 
Dim returnValue As DataServiceResponse 

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

Return Value

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

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