Search Results for

    Show / Hide Table of Contents
    View Source

    Class PagedResult

    Represents a paged result for a model collection

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(Name = "pagedCollection", Namespace = "")]
    public abstract class PagedResult

    Constructors

    View Source

    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

    View Source

    PageNumber

    Declaration
    [DataMember(Name = "pageNumber")]
    public long PageNumber { get; }
    Property Value
    Type Description
    System.Int64
    View Source

    PageSize

    Declaration
    [DataMember(Name = "pageSize")]
    public long PageSize { get; }
    Property Value
    Type Description
    System.Int64
    View Source

    TotalItems

    Declaration
    [DataMember(Name = "totalItems")]
    public long TotalItems { get; }
    Property Value
    Type Description
    System.Int64
    View Source

    TotalPages

    Declaration
    [DataMember(Name = "totalPages")]
    public long TotalPages { get; }
    Property Value
    Type Description
    System.Int64

    Methods

    View Source

    GetSkipSize()

    Calculates the skip size based on the paged parameters specified

    Declaration
    public int GetSkipSize()
    Returns
    Type Description
    System.Int32
    Remarks

    Returns 0 if the page number or page size is zero

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • PagedResult(Int64, Int64, Int64)
    • Properties
      • PageNumber
      • PageSize
      • TotalItems
      • TotalPages
    • Methods
      • GetSkipSize()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX