DataServiceQuery<TElement>.GetAllPagesAsync 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
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
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
A task that represents an IEnumerable<T> that contains the results of the query operation.