DataServiceContext.ExecuteAsync 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
ExecuteAsync(Uri, String, OperationParameter[]) |
Asynchronously sends the request so that this call does not block processing while waiting for the results from the service. |
ExecuteAsync(Uri, String, CancellationToken, OperationParameter[]) |
Asynchronously sends the request so that this call does not block processing while waiting for the results from the service. |
ExecuteAsync<TElement>(Uri, String, Boolean, OperationParameter[]) |
Asynchronously sends the request so that this call does not block processing while waiting for the results from the service. |
ExecuteAsync<TElement>(Uri, String, Boolean, CancellationToken, OperationParameter[]) |
Asynchronously sends the request so that this call does not block processing while waiting for the results from the service. |
ExecuteAsync<TElement>(Uri, String, OperationParameter[]) |
Asynchronously sends the request so that this call does not block processing while waiting for the results from the service. |
ExecuteAsync<TElement>(Uri, String, CancellationToken, OperationParameter[]) |
Asynchronously sends the request so that this call does not block processing while waiting for the results from the service. |
ExecuteAsync<TElement>(DataServiceQueryContinuation<TElement>, CancellationToken) |
Asynchronously sends a request to the data service to retrieve the next page of data in a paged query result. |
ExecuteAsync<TElement>(DataServiceQueryContinuation<TElement>) |
Asynchronously sends a request to the data service to retrieve the next page of data in a paged query result. |
ExecuteAsync<TElement>(Uri, CancellationToken) |
Asynchronously sends the request so that this call does not block processing while waiting for the results from the service. |
ExecuteAsync<TElement>(Uri) |
Asynchronously sends the request so that this call does not block processing while waiting for the results from the service. |
ExecuteAsync(Uri, String, OperationParameter[])
Asynchronously sends the request so that this call does not block processing while waiting for the results from the service.
public virtual System.Threading.Tasks.Task<Microsoft.OData.Client.OperationResponse> ExecuteAsync (Uri requestUri, string httpMethod, params Microsoft.OData.Client.OperationParameter[] operationParameters);
abstract member ExecuteAsync : Uri * string * Microsoft.OData.Client.OperationParameter[] -> System.Threading.Tasks.Task<Microsoft.OData.Client.OperationResponse>
override this.ExecuteAsync : Uri * string * Microsoft.OData.Client.OperationParameter[] -> System.Threading.Tasks.Task<Microsoft.OData.Client.OperationResponse>
Public Overridable Function ExecuteAsync (requestUri As Uri, httpMethod As String, ParamArray operationParameters As OperationParameter()) As Task(Of OperationResponse)
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.
- httpMethod
- String
The HTTP data transfer method used by the client.
- operationParameters
- OperationParameter[]
The operation parameters used.
Returns
A task represents the result of the operation.
Applies to
ExecuteAsync(Uri, String, CancellationToken, OperationParameter[])
Asynchronously sends the request so that this call does not block processing while waiting for the results from the service.
public virtual System.Threading.Tasks.Task<Microsoft.OData.Client.OperationResponse> ExecuteAsync (Uri requestUri, string httpMethod, System.Threading.CancellationToken cancellationToken, params Microsoft.OData.Client.OperationParameter[] operationParameters);
abstract member ExecuteAsync : Uri * string * System.Threading.CancellationToken * Microsoft.OData.Client.OperationParameter[] -> System.Threading.Tasks.Task<Microsoft.OData.Client.OperationResponse>
override this.ExecuteAsync : Uri * string * System.Threading.CancellationToken * Microsoft.OData.Client.OperationParameter[] -> System.Threading.Tasks.Task<Microsoft.OData.Client.OperationResponse>
Public Overridable Function ExecuteAsync (requestUri As Uri, httpMethod As String, cancellationToken As CancellationToken, ParamArray operationParameters As OperationParameter()) As Task(Of OperationResponse)
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.
- httpMethod
- String
The HTTP data transfer method used by the client.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests.
- operationParameters
- OperationParameter[]
The operation parameters used.
Returns
A task represents the result of the operation.
Applies to
ExecuteAsync<TElement>(Uri, String, Boolean, OperationParameter[])
Asynchronously sends the request so that this call does not block processing while waiting for the results from the service.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TElement>> ExecuteAsync<TElement> (Uri requestUri, string httpMethod, bool singleResult, params Microsoft.OData.Client.OperationParameter[] operationParameters);
abstract member ExecuteAsync : Uri * string * bool * Microsoft.OData.Client.OperationParameter[] -> System.Threading.Tasks.Task<seq<'Element>>
override this.ExecuteAsync : Uri * string * bool * Microsoft.OData.Client.OperationParameter[] -> System.Threading.Tasks.Task<seq<'Element>>
Public Overridable Function ExecuteAsync(Of TElement) (requestUri As Uri, httpMethod As String, singleResult As Boolean, ParamArray operationParameters As OperationParameter()) As Task(Of IEnumerable(Of TElement))
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.
- 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
A task represents the result of the operation.
Applies to
ExecuteAsync<TElement>(Uri, String, Boolean, CancellationToken, OperationParameter[])
Asynchronously sends the request so that this call does not block processing while waiting for the results from the service.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TElement>> ExecuteAsync<TElement> (Uri requestUri, string httpMethod, bool singleResult, System.Threading.CancellationToken cancellationToken, params Microsoft.OData.Client.OperationParameter[] operationParameters);
abstract member ExecuteAsync : Uri * string * bool * System.Threading.CancellationToken * Microsoft.OData.Client.OperationParameter[] -> System.Threading.Tasks.Task<seq<'Element>>
override this.ExecuteAsync : Uri * string * bool * System.Threading.CancellationToken * Microsoft.OData.Client.OperationParameter[] -> System.Threading.Tasks.Task<seq<'Element>>
Public Overridable Function ExecuteAsync(Of TElement) (requestUri As Uri, httpMethod As String, singleResult As Boolean, cancellationToken As CancellationToken, ParamArray operationParameters As OperationParameter()) As Task(Of IEnumerable(Of TElement))
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.
- 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.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests.
- operationParameters
- OperationParameter[]
The operation parameters used.
Returns
A task represents the result of the operation.
Applies to
ExecuteAsync<TElement>(Uri, String, OperationParameter[])
Asynchronously sends the request so that this call does not block processing while waiting for the results from the service.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TElement>> ExecuteAsync<TElement> (Uri requestUri, string httpMethod, params Microsoft.OData.Client.OperationParameter[] operationParameters);
abstract member ExecuteAsync : Uri * string * Microsoft.OData.Client.OperationParameter[] -> System.Threading.Tasks.Task<seq<'Element>>
override this.ExecuteAsync : Uri * string * Microsoft.OData.Client.OperationParameter[] -> System.Threading.Tasks.Task<seq<'Element>>
Public Overridable Function ExecuteAsync(Of TElement) (requestUri As Uri, httpMethod As String, ParamArray operationParameters As OperationParameter()) As Task(Of IEnumerable(Of TElement))
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.
- httpMethod
- String
The HTTP data transfer method used by the client.
- operationParameters
- OperationParameter[]
The operation parameters used.
Returns
A task represents the result of the operation.
Applies to
ExecuteAsync<TElement>(Uri, String, CancellationToken, OperationParameter[])
Asynchronously sends the request so that this call does not block processing while waiting for the results from the service.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TElement>> ExecuteAsync<TElement> (Uri requestUri, string httpMethod, System.Threading.CancellationToken cancellationToken, params Microsoft.OData.Client.OperationParameter[] operationParameters);
abstract member ExecuteAsync : Uri * string * System.Threading.CancellationToken * Microsoft.OData.Client.OperationParameter[] -> System.Threading.Tasks.Task<seq<'Element>>
override this.ExecuteAsync : Uri * string * System.Threading.CancellationToken * Microsoft.OData.Client.OperationParameter[] -> System.Threading.Tasks.Task<seq<'Element>>
Public Overridable Function ExecuteAsync(Of TElement) (requestUri As Uri, httpMethod As String, cancellationToken As CancellationToken, ParamArray operationParameters As OperationParameter()) As Task(Of IEnumerable(Of TElement))
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.
- httpMethod
- String
The HTTP data transfer method used by the client.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests.
- operationParameters
- OperationParameter[]
The operation parameters used.
Returns
A task represents the result of the operation.
Applies to
ExecuteAsync<TElement>(DataServiceQueryContinuation<TElement>, CancellationToken)
Asynchronously sends a request to the data service to retrieve the next page of data in a paged query result.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TElement>> ExecuteAsync<TElement> (Microsoft.OData.Client.DataServiceQueryContinuation<TElement> continuation, System.Threading.CancellationToken cancellationToken);
abstract member ExecuteAsync : Microsoft.OData.Client.DataServiceQueryContinuation<'Element> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<'Element>>
override this.ExecuteAsync : Microsoft.OData.Client.DataServiceQueryContinuation<'Element> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<'Element>>
Public Overridable Function ExecuteAsync(Of TElement) (continuation As DataServiceQueryContinuation(Of TElement), cancellationToken As CancellationToken) As Task(Of IEnumerable(Of TElement))
Type Parameters
- TElement
The type returned by the query.
Parameters
- continuation
- DataServiceQueryContinuation<TElement>
A DataServiceQueryContinuation<T> object that represents the next page of data to return from the data service.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests.
Returns
A task that represents the results returned by the query operation.
Applies to
ExecuteAsync<TElement>(DataServiceQueryContinuation<TElement>)
Asynchronously sends a request to the data service to retrieve the next page of data in a paged query result.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TElement>> ExecuteAsync<TElement> (Microsoft.OData.Client.DataServiceQueryContinuation<TElement> continuation);
abstract member ExecuteAsync : Microsoft.OData.Client.DataServiceQueryContinuation<'Element> -> System.Threading.Tasks.Task<seq<'Element>>
override this.ExecuteAsync : Microsoft.OData.Client.DataServiceQueryContinuation<'Element> -> System.Threading.Tasks.Task<seq<'Element>>
Public Overridable Function ExecuteAsync(Of TElement) (continuation As DataServiceQueryContinuation(Of TElement)) As Task(Of IEnumerable(Of TElement))
Type Parameters
- TElement
The type returned by the query.
Parameters
- continuation
- DataServiceQueryContinuation<TElement>
A DataServiceQueryContinuation<T> object that represents the next page of data to return from the data service.
Returns
A task that represents the results returned by the query operation.
Applies to
ExecuteAsync<TElement>(Uri, CancellationToken)
Asynchronously sends the request so that this call does not block processing while waiting for the results from the service.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TElement>> ExecuteAsync<TElement> (Uri requestUri, System.Threading.CancellationToken cancellationToken);
abstract member ExecuteAsync : Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<'Element>>
override this.ExecuteAsync : Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<'Element>>
Public Overridable Function ExecuteAsync(Of TElement) (requestUri As Uri, cancellationToken As CancellationToken) As Task(Of IEnumerable(Of TElement))
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.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests.
Returns
A task represents the result of the operation.
Applies to
ExecuteAsync<TElement>(Uri)
Asynchronously sends the request so that this call does not block processing while waiting for the results from the service.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TElement>> ExecuteAsync<TElement> (Uri requestUri);
abstract member ExecuteAsync : Uri -> System.Threading.Tasks.Task<seq<'Element>>
override this.ExecuteAsync : Uri -> System.Threading.Tasks.Task<seq<'Element>>
Public Overridable Function ExecuteAsync(Of TElement) (requestUri As Uri) As Task(Of IEnumerable(Of TElement))
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.
Returns
A task represents the result of the operation.