DataServiceContext.EndExecuteBatch Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Called to complete the BeginExecuteBatch.

Namespace:  System.Data.Services.Client
Assembly:  System.Data.Services.Client (in System.Data.Services.Client.dll)

Syntax

'Declaration
Public Function EndExecuteBatch ( _
    asyncResult As IAsyncResult _
) As DataServiceResponse
public DataServiceResponse EndExecuteBatch(
    IAsyncResult asyncResult
)

Parameters

  • asyncResult
    Type: System.IAsyncResult
    An IAsyncResult that represents the status of the asynchronous operation.

Return Value

Type: System.Data.Services.Client.DataServiceResponse
TheDataServiceResponse object that indicates the result of the batch operation.

Remarks

Submits a group of queries as a batch to the data service. Individual query responses are represented as DataServiceResponse objects derived from OperationResponse that can be accessed from the DataServiceResponse instance.

Examples

For an example that uses batch requests, see Querying the Data Service (WCF Data Services/Silverlight).

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.