Share via


IPagedEnumerable<T> Interface

Definition

Exposes enumerators for a paged collection. These enumerators support simple iteration over a paged collection of a specified type.

Paged collections are backed by one or more calls to the Batch Service.
Each of these calls can return a variable sized page of data which is then consumed by the enumerator.

public interface IPagedEnumerable<T> : System.Collections.Generic.IEnumerable<T>
type IPagedEnumerable<'T> = interface
    interface seq<'T>
    interface IEnumerable
Public Interface IPagedEnumerable(Of T)
Implements IEnumerable(Of T)

Type Parameters

T

The type of objects to enumerate.

Implements

Methods

GetPagedEnumerator()

Returns an asynchronous enumerator that iterates through the paged collection.

Extension Methods

ForEachAsync<T>(IPagedEnumerable<T>, Action<T>, CancellationToken)

Iterates over an IPagedEnumerable<T> sequence, invoking a synchronous delegate for each element.

ForEachAsync<T>(IPagedEnumerable<T>, Func<T,CancellationToken,Task>, CancellationToken)

Iterates over an IPagedEnumerable<T> sequence, invoking an asynchronous delegate for each element.

ForEachAsync<T>(IPagedEnumerable<T>, Func<T,Task>, CancellationToken)

Iterates over an IPagedEnumerable<T> sequence, invoking an asynchronous delegate for each element.

ToListAsync<T>(IPagedEnumerable<T>, CancellationToken)

Creates a List<T> from an IPagedEnumerable<T>.

Applies to