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.

Extension Methods

ToCommaSeparatedString<T>(IEnumerable<T>)

Converts the elements of a collection to strings and concatenates them into a comma-separated list, or returns null for null or empty collections.

IsNullOrEmpty<T>(IEnumerable<T>)

Checks whether enumerable is null or empty.

Applies to