Sdílet prostřednictvím


TruncatedCollection<T> Třída

Definice

Představuje třídu, která zkrátí kolekci na danou velikost stránky.

public class TruncatedCollection<T> : System.Collections.Generic.List<T>, Microsoft.AspNet.OData.Query.ITruncatedCollection, System.Collections.Generic.IEnumerable<T>
type TruncatedCollection<'T> = class
    inherit List<'T>
    interface ITruncatedCollection
    interface IEnumerable
    interface seq<'T>
Public Class TruncatedCollection(Of T)
Inherits List(Of T)
Implements IEnumerable(Of T), ITruncatedCollection

Parametry typu

T

Typ elementu kolekce.

Dědičnost
List<T>
TruncatedCollection<T>
Implementuje

Konstruktory

TruncatedCollection<T>(IEnumerable<T>, Int32, Nullable<Int64>)

Inicializuje novou instanci TruncatedCollection<T> třídy .

TruncatedCollection<T>(IEnumerable<T>, Int32)

Inicializuje novou instanci TruncatedCollection<T> třídy .

TruncatedCollection<T>(IQueryable<T>, Int32, Boolean)

Inicializuje novou instanci TruncatedCollection<T> třídy .

TruncatedCollection<T>(IQueryable<T>, Int32, Nullable<Int64>, Boolean)

Inicializuje novou instanci TruncatedCollection<T> třídy .

TruncatedCollection<T>(IQueryable<T>, Int32, Nullable<Int64>)

Inicializuje novou instanci TruncatedCollection<T> třídy .

TruncatedCollection<T>(IQueryable<T>, Int32)

Inicializuje novou instanci TruncatedCollection<T> třídy .

Vlastnosti

IsTruncated

Získá hodnotu představující, pokud je kolekce zkrácena nebo ne.

PageSize

Získá velikost stránky, na které je kolekce zkrácena.

TotalCount

Představuje třídu, která zkrátí kolekci na danou velikost stránky.

Platí pro