Share via


PageCollection<T> Class

Definition

A collection of page results returned by a cloud service. Cloud services use pagination to return a collection of items over multiple responses. Each response from the service returns a page of items in the collection, as well as the information needed to obtain the next page of items, until all the items in the requested collection have been returned. To enumerate the items in the collection, instead of the pages in the collection, call GetAllValues(). To get the current collection page, call GetCurrentPage().

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

Type Parameters

T
Inheritance
PageCollection<T>
Implements

Constructors

PageCollection<T>()

Create a new instance of PageCollection<T>.

Methods

GetAllValues()

Get a collection of all the values in the collection requested from the cloud service, rather than the pages of values.

GetCurrentPage()

Get the current page of the collection.

GetCurrentPageCore()

Get the current page of the collection.

GetEnumeratorCore()

Get an enumerator that can enumerate the pages of values returned by the cloud service.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<PageResult<T>>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to