DataServiceQuery<TElement>.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() |
Starts an asynchronous network operation that executes the query represented by this object instance. |
ExecuteAsync(CancellationToken) |
Starts an asynchronous network operation that executes the query represented by this object instance. |
ExecuteAsync()
Starts an asynchronous network operation that executes the query represented by this object instance.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TElement>> ExecuteAsync ();
override this.ExecuteAsync : unit -> System.Threading.Tasks.Task<seq<'Element>>
Public Overridable Function ExecuteAsync () As Task(Of IEnumerable(Of TElement))
Returns
A task that represents an IEnumerable<T> that contains the results of the query operation.
Applies to
ExecuteAsync(CancellationToken)
Starts an asynchronous network operation that executes the query represented by this object instance.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TElement>> ExecuteAsync (System.Threading.CancellationToken cancellationToken);
override this.ExecuteAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<'Element>>
Public Overridable Function ExecuteAsync (cancellationToken As CancellationToken) As Task(Of IEnumerable(Of TElement))
Parameters
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests.
Returns
A task that represents an IEnumerable<T> that contains the results of the query operation.