Share via


DataServiceQuery<TElement>.GetAllPagesAsync Method

Definition

Overloads

GetAllPagesAsync()

Asynchronously sends a request to get all items by auto iterating all pages

GetAllPagesAsync(CancellationToken)

Asynchronously sends a request to get all items by auto iterating all pages

GetAllPagesAsync()

Asynchronously sends a request to get all items by auto iterating all pages

public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TElement>> GetAllPagesAsync ();
abstract member GetAllPagesAsync : unit -> System.Threading.Tasks.Task<seq<'Element>>
override this.GetAllPagesAsync : unit -> System.Threading.Tasks.Task<seq<'Element>>
Public Overridable Function GetAllPagesAsync () 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

GetAllPagesAsync(CancellationToken)

Asynchronously sends a request to get all items by auto iterating all pages

public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TElement>> GetAllPagesAsync (System.Threading.CancellationToken cancellationToken);
abstract member GetAllPagesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<'Element>>
override this.GetAllPagesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<'Element>>
Public Overridable Function GetAllPagesAsync (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