Share via


DataServiceContext.BeginExecuteBatch Method

Definition

Overloads

BeginExecuteBatch(AsyncCallback, Object, DataServiceRequest[])

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

BeginExecuteBatch(AsyncCallback, Object, SaveChangesOptions, DataServiceRequest[])

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

BeginExecuteBatch(AsyncCallback, Object, DataServiceRequest[])

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

public virtual IAsyncResult BeginExecuteBatch (AsyncCallback callback, object state, params Microsoft.OData.Client.DataServiceRequest[] queries);
abstract member BeginExecuteBatch : AsyncCallback * obj * Microsoft.OData.Client.DataServiceRequest[] -> IAsyncResult
override this.BeginExecuteBatch : AsyncCallback * obj * Microsoft.OData.Client.DataServiceRequest[] -> IAsyncResult
Public Overridable Function BeginExecuteBatch (callback As AsyncCallback, state As Object, ParamArray queries As DataServiceRequest()) As IAsyncResult

Parameters

callback
AsyncCallback

The delegate that is called when a response to the batch request is received.

state
Object

User-defined state object that is used to pass context data to the callback method.

queries
DataServiceRequest[]

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

Returns

An IAsyncResult object that is used to track the status of the asynchronous operation.

Applies to

BeginExecuteBatch(AsyncCallback, Object, SaveChangesOptions, DataServiceRequest[])

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

public virtual IAsyncResult BeginExecuteBatch (AsyncCallback callback, object state, Microsoft.OData.Client.SaveChangesOptions options, params Microsoft.OData.Client.DataServiceRequest[] queries);
abstract member BeginExecuteBatch : AsyncCallback * obj * Microsoft.OData.Client.SaveChangesOptions * Microsoft.OData.Client.DataServiceRequest[] -> IAsyncResult
override this.BeginExecuteBatch : AsyncCallback * obj * Microsoft.OData.Client.SaveChangesOptions * Microsoft.OData.Client.DataServiceRequest[] -> IAsyncResult
Public Overridable Function BeginExecuteBatch (callback As AsyncCallback, state As Object, options As SaveChangesOptions, ParamArray queries As DataServiceRequest()) As IAsyncResult

Parameters

callback
AsyncCallback

The delegate that is called when a response to the batch request is received.

state
Object

User-defined state object that is used to pass context data to the callback method.

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 IAsyncResult object that is used to track the status of the asynchronous operation.

Applies to