View Source
Class PagedResult
Represents a paged result for a model collection
Assembly: Umbraco.Core.dll
Syntax
[Obsolete("Superseded by PagedModel for service layer and below OR PagedViewModel in apis. Expected to be removed when skip/take pattern has been fully implemented v14+")]
[DataContract(Name = "pagedCollection", Namespace = "")]
public abstract class PagedResult
Constructors
View Source
PagedResult(long, long, long)
Declaration
public PagedResult(long totalItems, long pageNumber, long pageSize)
Parameters
| Type |
Name |
Description |
| long |
totalItems |
|
| long |
pageNumber |
|
| long |
pageSize |
|
Properties
View Source
PageNumber
Declaration
[DataMember(Name = "pageNumber")]
public long PageNumber { get; }
Property Value
View Source
PageSize
Declaration
[DataMember(Name = "pageSize")]
public long PageSize { get; }
Property Value
View Source
TotalItems
Declaration
[DataMember(Name = "totalItems")]
public long TotalItems { get; }
Property Value
View Source
TotalPages
Declaration
[DataMember(Name = "totalPages")]
public long TotalPages { get; }
Property Value
Methods
View Source
GetSkipSize()
Calculates the skip size based on the paged parameters specified
Declaration
Returns