다음을 통해 공유


PagedList<T> Class

Definition

Represents a paged list that contains a list of items and a continuation token.

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

Type Parameters

T

The type of the items returned by query.

Inheritance
PagedList<T>
Derived
Implements

Remarks

The paged list is obtained from queries that have more results than can fit a message. The next results can be obtained by executing the same query with the previous continuation token.

Constructors

PagedList<T>()

Instantiates an empty PagedList class.

PagedList<T>(IList<T>)

Instantiates a PagedList class with the items of another list.

Properties

ContinuationToken

The continuation token. Can be used by queries to get next pages of results.

Count

Gets the number of items in the list.

IsReadOnly

Gets a flag that indicated whether the list can be modified.

Item[Int32]

Gets the item at the specified index.

Methods

Add(T)

Adds an item to this list.

Clear()

Removes all items from this list.

Contains(T)

Specifies whether the list contains a specific item.

CopyTo(T[], Int32)

Copies items from this list to the specified array starting at the specified index.

GetEnumerator()

Gets an enumerator to items in this list.

IndexOf(T)

Gets the index in this list for the specified item.

Insert(Int32, T)

Inserts an item into this list at the specified index.

Items()
Remove(T)

Removes the specified item from this list.

RemoveAt(Int32)

Removes the item at the specified index from this list.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Gets an enumerator to items in this list.

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.

ToArray<T>(PagedList<T>)

Returns an array with the items in the paged list.

Applies to