DataServiceContext.BeginExecute<TElement> Method (Uri, AsyncCallback, Object, String, Boolean, OperationParameter[])

Asynchronously sends a request to the data service to execute a specific URI.

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

public IAsyncResult BeginExecute<TElement>(
	Uri requestUri,
	AsyncCallback callback,
	Object state,
	string httpMethod,
	bool singleResult,
	params OperationParameter[] operationParameters
)

Type Parameters

TElement

The type returned by the query.

Parameters

requestUri
Type: System.Uri
The URI to which the query request will be sent.
callback
Type: System.AsyncCallback
Delegate to invoke when results are available for client consumption.
state
Type: System.Object
User-defined state object passed to the callback.
httpMethod
Type: System.String
The HTTP data transfer method used by the client.
singleResult
Type: System.Boolean
Attribute used on service operations to specify that they return a single instance of their return element.
operationParameters
Type: System.Data.Services.Client.OperationParameter[]
The operation parameters used.

Return Value

Type: System.IAsyncResult
The result of the operation.
Show: