Struct Pagination
This data structure contains the necessary information to create a page.
Inherited Members
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 |
Exceptions
| Type | Condition |
|---|---|
| InvalidArgumentException | Throws if the |
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. |