DataServiceContext.BeginExecute Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
BeginExecute(Uri, AsyncCallback, Object, String, OperationParameter[]) |
Asynchronously sends a request to the data service to execute a specific URI. |
BeginExecute<T>(DataServiceQueryContinuation<T>, AsyncCallback, Object) |
Asynchronously sends a request to the data service to retrieve the next page of data in a paged query result. |
BeginExecute<TElement>(Uri, AsyncCallback, Object, String, Boolean, OperationParameter[]) |
Asynchronously sends a request to the data service to execute a specific URI. |
BeginExecute<TElement>(Uri, AsyncCallback, Object) |
Asynchronously sends the request so that this call does not block processing while waiting for the results from the service. |
BeginExecute<TElement>(Uri, AsyncCallback, Object, String, OperationParameter[]) |
Asynchronously sends a request to the data service to execute a specific URI. |
BeginExecute(Uri, AsyncCallback, Object, String, OperationParameter[])
Asynchronously sends a request to the data service to execute a specific URI.
public virtual IAsyncResult BeginExecute (Uri requestUri, AsyncCallback callback, object state, string httpMethod, params Microsoft.OData.Client.OperationParameter[] operationParameters);
abstract member BeginExecute : Uri * AsyncCallback * obj * string * Microsoft.OData.Client.OperationParameter[] -> IAsyncResult
override this.BeginExecute : Uri * AsyncCallback * obj * string * Microsoft.OData.Client.OperationParameter[] -> IAsyncResult
Public Overridable Function BeginExecute (requestUri As Uri, callback As AsyncCallback, state As Object, httpMethod As String, ParamArray operationParameters As OperationParameter()) As IAsyncResult
Parameters
- requestUri
- Uri
The URI to which the query request will be sent.
- callback
- AsyncCallback
Delegate to invoke when results are available for client consumption.
- state
- Object
User-defined state object passed to the callback.
- httpMethod
- String
The HTTP data transfer method used by the client.
- operationParameters
- OperationParameter[]
The operation parameters used.
Returns
The result of the operation.
Remarks
This overload expects the requestUri
to end with a ServiceOperation or ServiceAction that returns void.
Applies to
BeginExecute<T>(DataServiceQueryContinuation<T>, AsyncCallback, Object)
Asynchronously sends a request to the data service to retrieve the next page of data in a paged query result.
public virtual IAsyncResult BeginExecute<T> (Microsoft.OData.Client.DataServiceQueryContinuation<T> continuation, AsyncCallback callback, object state);
abstract member BeginExecute : Microsoft.OData.Client.DataServiceQueryContinuation<'T> * AsyncCallback * obj -> IAsyncResult
override this.BeginExecute : Microsoft.OData.Client.DataServiceQueryContinuation<'T> * AsyncCallback * obj -> IAsyncResult
Public Overridable Function BeginExecute(Of T) (continuation As DataServiceQueryContinuation(Of T), callback As AsyncCallback, state As Object) As IAsyncResult
Type Parameters
- T
The type returned by the query.
Parameters
- continuation
- DataServiceQueryContinuation<T>
A DataServiceQueryContinuation<T> object that represents the next page of data to return from the data service.
- callback
- AsyncCallback
Delegate to invoke when results are available for client consumption.
- state
- Object
User-defined state object passed to the callback.
Returns
An IAsyncResult that represents the status of the operation.
Applies to
BeginExecute<TElement>(Uri, AsyncCallback, Object, String, Boolean, OperationParameter[])
Asynchronously sends a request to the data service to execute a specific URI.
public virtual IAsyncResult BeginExecute<TElement> (Uri requestUri, AsyncCallback callback, object state, string httpMethod, bool singleResult, params Microsoft.OData.Client.OperationParameter[] operationParameters);
abstract member BeginExecute : Uri * AsyncCallback * obj * string * bool * Microsoft.OData.Client.OperationParameter[] -> IAsyncResult
override this.BeginExecute : Uri * AsyncCallback * obj * string * bool * Microsoft.OData.Client.OperationParameter[] -> IAsyncResult
Public Overridable Function BeginExecute(Of TElement) (requestUri As Uri, callback As AsyncCallback, state As Object, httpMethod As String, singleResult As Boolean, ParamArray operationParameters As OperationParameter()) As IAsyncResult
Type Parameters
- TElement
The type returned by the query.
Parameters
- requestUri
- Uri
The URI to which the query request will be sent.
- callback
- AsyncCallback
Delegate to invoke when results are available for client consumption.
- state
- Object
User-defined state object passed to the callback.
- httpMethod
- String
The HTTP data transfer method used by the client.
- singleResult
- Boolean
Attribute used on service operations to specify that they return a single instance of their return element.
- operationParameters
- OperationParameter[]
The operation parameters used.
Returns
The result of the operation.
Applies to
BeginExecute<TElement>(Uri, AsyncCallback, Object)
Asynchronously sends the request so that this call does not block processing while waiting for the results from the service.
public virtual IAsyncResult BeginExecute<TElement> (Uri requestUri, AsyncCallback callback, object state);
abstract member BeginExecute : Uri * AsyncCallback * obj -> IAsyncResult
override this.BeginExecute : Uri * AsyncCallback * obj -> IAsyncResult
Public Overridable Function BeginExecute(Of TElement) (requestUri As Uri, callback As AsyncCallback, state As Object) As IAsyncResult
Type Parameters
- TElement
The type returned by the query.
Parameters
- requestUri
- Uri
The URI to which the query request will be sent. The URI may be any valid data service URI; it can contain $ query parameters.
- callback
- AsyncCallback
Delegate to invoke when results are available for client consumption.
- state
- Object
User-defined state object passed to the callback.
Returns
An object that is used to track the status of the asynchronous operation.
Applies to
BeginExecute<TElement>(Uri, AsyncCallback, Object, String, OperationParameter[])
Asynchronously sends a request to the data service to execute a specific URI.
public virtual IAsyncResult BeginExecute<TElement> (Uri requestUri, AsyncCallback callback, object state, string httpMethod, params Microsoft.OData.Client.OperationParameter[] operationParameters);
abstract member BeginExecute : Uri * AsyncCallback * obj * string * Microsoft.OData.Client.OperationParameter[] -> IAsyncResult
override this.BeginExecute : Uri * AsyncCallback * obj * string * Microsoft.OData.Client.OperationParameter[] -> IAsyncResult
Public Overridable Function BeginExecute(Of TElement) (requestUri As Uri, callback As AsyncCallback, state As Object, httpMethod As String, ParamArray operationParameters As OperationParameter()) As IAsyncResult
Type Parameters
- TElement
The type returned by the query.
Parameters
- requestUri
- Uri
The URI to which the query request will be sent.
- callback
- AsyncCallback
Delegate to invoke when results are available for client consumption.
- state
- Object
User-defined state object passed to the callback.
- httpMethod
- String
The HTTP data transfer method used by the client.
- operationParameters
- OperationParameter[]
The operation parameters used.
Returns
The result of the operation.