Delen via


Pageable<T> Class

Definition

A collection of values that may take multiple service requests to iterate over.

public abstract class Pageable<T> : System.Collections.Generic.IEnumerable<T>
type Pageable<'T> = class
    interface seq<'T>
    interface IEnumerable
Public MustInherit Class Pageable(Of T)
Implements IEnumerable(Of T)

Type Parameters

T

The type of the values.

Inheritance
Pageable<T>
Implements

Constructors

Pageable<T>()

Initializes a new instance of the Pageable<T> class for mocking.

Pageable<T>(CancellationToken)

Initializes a new instance of the Pageable<T> class.

Properties

CancellationToken

Gets a CancellationToken used for requests made while enumerating asynchronously.

Methods

AsPages(String, Nullable<Int32>)

Enumerate the values a Page<T> at a time. This may make multiple service requests.

FromPages(IEnumerable<Page<T>>)

Creates an instance of Pageable<T> using the provided pages.

GetEnumerator()

Enumerate the values in the collection. This may make multiple service requests.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

Applies to