Share via


DataServiceQuery<TElement>.ExecuteAsync Method

Definition

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

Task<IEnumerable<TElement>>

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

Task<IEnumerable<TElement>>

A task that represents an IEnumerable<T> that contains the results of the query operation.

Applies to