DataServiceContext.SaveChangesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SaveChangesAsync() |
Asynchronously submits the pending changes to the data service collected by the DataServiceContext since the last time changes were saved. |
SaveChangesAsync(SaveChangesOptions) |
Asynchronously submits the pending changes to the data service collected by the DataServiceContext since the last time changes were saved. |
SaveChangesAsync(CancellationToken) |
Asynchronously submits the pending changes to the data service collected by the DataServiceContext since the last time changes were saved. |
SaveChangesAsync(SaveChangesOptions, CancellationToken) |
Asynchronously submits the pending changes to the data service collected by the DataServiceContext since the last time changes were saved. |
SaveChangesAsync()
Asynchronously submits the pending changes to the data service collected by the DataServiceContext since the last time changes were saved.
public virtual System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse> SaveChangesAsync ();
abstract member SaveChangesAsync : unit -> System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse>
override this.SaveChangesAsync : unit -> System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse>
Public Overridable Function SaveChangesAsync () As Task(Of DataServiceResponse)
Returns
A task that represents a DataServiceResponse object that indicates the result of the batch operation.
Applies to
SaveChangesAsync(SaveChangesOptions)
Asynchronously submits the pending changes to the data service collected by the DataServiceContext since the last time changes were saved.
public virtual System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse> SaveChangesAsync (Microsoft.OData.Client.SaveChangesOptions options);
abstract member SaveChangesAsync : Microsoft.OData.Client.SaveChangesOptions -> System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse>
override this.SaveChangesAsync : Microsoft.OData.Client.SaveChangesOptions -> System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse>
Public Overridable Function SaveChangesAsync (options As SaveChangesOptions) As Task(Of DataServiceResponse)
Parameters
- options
- SaveChangesOptions
A member of the SaveChangesOptions enumeration for how the client can save the pending set of changes.
Returns
A task that represents a DataServiceResponse object that indicates the result of the batch operation.
Applies to
SaveChangesAsync(CancellationToken)
Asynchronously submits the pending changes to the data service collected by the DataServiceContext since the last time changes were saved.
public virtual System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse> SaveChangesAsync (System.Threading.CancellationToken cancellationToken);
abstract member SaveChangesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse>
override this.SaveChangesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse>
Public Overridable Function SaveChangesAsync (cancellationToken As CancellationToken) As Task(Of DataServiceResponse)
Parameters
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests.
Returns
A task that represents a DataServiceResponse object that indicates the result of the batch operation.
Applies to
SaveChangesAsync(SaveChangesOptions, CancellationToken)
Asynchronously submits the pending changes to the data service collected by the DataServiceContext since the last time changes were saved.
public virtual System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse> SaveChangesAsync (Microsoft.OData.Client.SaveChangesOptions options, System.Threading.CancellationToken cancellationToken);
abstract member SaveChangesAsync : Microsoft.OData.Client.SaveChangesOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse>
override this.SaveChangesAsync : Microsoft.OData.Client.SaveChangesOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse>
Public Overridable Function SaveChangesAsync (options As SaveChangesOptions, cancellationToken As CancellationToken) As Task(Of DataServiceResponse)
Parameters
- options
- SaveChangesOptions
A member of the SaveChangesOptions enumeration for how the client can save the pending set of changes.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests.
Returns
A task that represents a DataServiceResponse object that indicates the result of the batch operation.