Class PagedResult<T>
Represents a paged result for a model collection
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
[DataContract(Name = "pagedCollection", Namespace = "")]
public class PagedResult<T>
Type Parameters
Constructors
PagedResult(Int64, Int64, Int64)
Declaration
public PagedResult(long totalItems, long pageNumber, long pageSize)
Parameters
Type |
Name |
Description |
System.Int64 |
totalItems |
|
System.Int64 |
pageNumber |
|
System.Int64 |
pageSize |
|
Properties
Items
Declaration
[DataMember(Name = "items")]
public IEnumerable<T> Items { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
PageNumber
Declaration
[DataMember(Name = "pageNumber")]
public long PageNumber { get; }
Property Value
Type |
Description |
System.Int64 |
|
PageSize
Declaration
[DataMember(Name = "pageSize")]
public long PageSize { get; }
Property Value
Type |
Description |
System.Int64 |
|
TotalItems
Declaration
[DataMember(Name = "totalItems")]
public long TotalItems { get; }
Property Value
Type |
Description |
System.Int64 |
|
TotalPages
Declaration
[DataMember(Name = "totalPages")]
public long TotalPages { get; }
Property Value
Type |
Description |
System.Int64 |
|
Methods
GetSkipSize()
Calculates the skip size based on the paged parameters specified
Declaration
Returns
Type |
Description |
System.Int32 |
|