Class PaginationFilter
Filter for driving pagination of query responses.
public class PaginationFilter
- Inheritance
-
PaginationFilter
- Derived
- Inherited Members
Constructors
PaginationFilter()
public PaginationFilter()
Properties
Page
Which page to return (page index that starts at 1).
public int Page { get; set; }
Property Value
PageSize
How many items per page to return.
public int PageSize { get; set; }
Property Value
Methods
Clamp(int)
Prevent clients from over-querying.
public void Clamp(int maxPageSize = 100)
Parameters
maxPageSizeintMaximum amount of items per page allowed. Excess will be truncated, just tell clients not to query so damn much data, gosh!