July 26, 2012
Asynchronously submits a group of queries as a batch to the Open Data Protocol (OData) service.
Assembly: System.Data.Services.Client (in System.Data.Services.Client.dll)
public IAsyncResult BeginExecuteBatch( AsyncCallback callback, Object state, params DataServiceRequest queries )
- Type: System.AsyncCallback
The delegate that is called when a response to the batch request is received.
- Type: System.Object
User-defined state object that is used to pass context data to the callback method.
The array of query requests to include in the batch request.
Return ValueType: System.IAsyncResult
The query result.
The queries are specified as DataServiceRequest<TElement> instances. Returns a DataServiceResponse that represents the response of the whole batch request. Individual query responses are represented as DataServiceResponse objects that can be accessed by enumerating the DataServiceResponse instance.
When this method returns, the HTTP response for the batch request has been read from the network stream but the responses have not been processed. No identity resolution or object materialization occurs for a specified entity in the response until it is enumerated.