DataServiceContext.ExecuteBatchAsync Method

Definition

Overloads

ExecuteBatchAsync(DataServiceRequest[])

Asynchronously submits a group of queries as a batch to the data service.

ExecuteBatchAsync(SaveChangesOptions, DataServiceRequest[])

Asynchronously submits a group of queries as a batch to the data service.

ExecuteBatchAsync(CancellationToken, DataServiceRequest[])

Asynchronously submits a group of queries as a batch to the data service.

ExecuteBatchAsync(SaveChangesOptions, CancellationToken, DataServiceRequest[])

Asynchronously submits a group of queries as a batch to the data service.

ExecuteBatchAsync(DataServiceRequest[])

Asynchronously submits a group of queries as a batch to the data service.

public virtual System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse> ExecuteBatchAsync (params Microsoft.OData.Client.DataServiceRequest[] queries);
abstract member ExecuteBatchAsync : Microsoft.OData.Client.DataServiceRequest[] -> System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse>
override this.ExecuteBatchAsync : Microsoft.OData.Client.DataServiceRequest[] -> System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse>
Public Overridable Function ExecuteBatchAsync (ParamArray queries As DataServiceRequest()) As Task(Of DataServiceResponse)

Parameters

queries
DataServiceRequest[]

The array of query requests to include in the batch request.

Returns

An Task that represents the DataServiceResult object that indicates the result of the batch operation.

Applies to

ExecuteBatchAsync(SaveChangesOptions, DataServiceRequest[])

Asynchronously submits a group of queries as a batch to the data service.

public virtual System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse> ExecuteBatchAsync (Microsoft.OData.Client.SaveChangesOptions options, params Microsoft.OData.Client.DataServiceRequest[] queries);
abstract member ExecuteBatchAsync : Microsoft.OData.Client.SaveChangesOptions * Microsoft.OData.Client.DataServiceRequest[] -> System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse>
override this.ExecuteBatchAsync : Microsoft.OData.Client.SaveChangesOptions * Microsoft.OData.Client.DataServiceRequest[] -> System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse>
Public Overridable Function ExecuteBatchAsync (options As SaveChangesOptions, ParamArray queries As DataServiceRequest()) As Task(Of DataServiceResponse)

Parameters

options
SaveChangesOptions

A member of the SaveChangesOptions enumeration for how the client can save the pending set of changes.

queries
DataServiceRequest[]

The array of query requests to include in the batch request.

Returns

An Task that represents the DataServiceResult object that indicates the result of the batch operation.

Applies to

ExecuteBatchAsync(CancellationToken, DataServiceRequest[])

Asynchronously submits a group of queries as a batch to the data service.

public virtual System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse> ExecuteBatchAsync (System.Threading.CancellationToken cancellationToken, params Microsoft.OData.Client.DataServiceRequest[] queries);
abstract member ExecuteBatchAsync : System.Threading.CancellationToken * Microsoft.OData.Client.DataServiceRequest[] -> System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse>
override this.ExecuteBatchAsync : System.Threading.CancellationToken * Microsoft.OData.Client.DataServiceRequest[] -> System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse>
Public Overridable Function ExecuteBatchAsync (cancellationToken As CancellationToken, ParamArray queries As DataServiceRequest()) As Task(Of DataServiceResponse)

Parameters

cancellationToken
CancellationToken

The token to monitor for cancellation requests.

queries
DataServiceRequest[]

The array of query requests to include in the batch request.

Returns

An Task that represents the DataServiceResult object that indicates the result of the batch operation.

Applies to

ExecuteBatchAsync(SaveChangesOptions, CancellationToken, DataServiceRequest[])

Asynchronously submits a group of queries as a batch to the data service.

public virtual System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse> ExecuteBatchAsync (Microsoft.OData.Client.SaveChangesOptions options, System.Threading.CancellationToken cancellationToken, params Microsoft.OData.Client.DataServiceRequest[] queries);
abstract member ExecuteBatchAsync : Microsoft.OData.Client.SaveChangesOptions * System.Threading.CancellationToken * Microsoft.OData.Client.DataServiceRequest[] -> System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse>
override this.ExecuteBatchAsync : Microsoft.OData.Client.SaveChangesOptions * System.Threading.CancellationToken * Microsoft.OData.Client.DataServiceRequest[] -> System.Threading.Tasks.Task<Microsoft.OData.Client.DataServiceResponse>
Public Overridable Function ExecuteBatchAsync (options As SaveChangesOptions, cancellationToken As CancellationToken, ParamArray queries As DataServiceRequest()) 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.

queries
DataServiceRequest[]

The array of query requests to include in the batch request.

Returns

An Task that represents the DataServiceResult object that indicates the result of the batch operation.

Applies to