docs.unity3d.com
    Show / Hide Table of Contents

    Struct Pagination

    This data structure contains the necessary information to create a page.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Cloud.Assets
    Syntax
    public struct Pagination

    Constructors

    Pagination(String, Range, Pagination.Order)

    Initializes and returns a Pagination object.

    Declaration
    public Pagination(string sortingField, Range range, Pagination.Order order = Pagination.Order.Ascending)
    Parameters
    Type Name Description
    String sortingField

    The field to sort the elements of the page.

    Range range

    The set of results to retrieve.

    Pagination.Order order

    The order of the results based on the sortingField.

    Exceptions
    Type Condition
    InvalidArgumentException

    Throws if the sortingField is a null or empty string.

    Properties

    Range

    Returns the number of items per page.

    Declaration
    public readonly Range Range { get; }
    Property Value
    Type Description
    Range

    A number greater than zero.

    SortingField

    Returns the sorting method for the items of the page.

    Declaration
    public readonly string SortingField { get; }
    Property Value
    Type Description
    String

    A sorting method.

    SortingOrder

    Returns the sorting method for the items of the page.

    Declaration
    public readonly Pagination.Order SortingOrder { get; }
    Property Value
    Type Description
    Pagination.Order

    A sorting method.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023