Class PagedModel<T>
Represents a paged collection of items with total count information.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public class PagedModel<T>
Type Parameters
| Name | Description |
|---|---|
| T | The type of items in the collection. |
Constructors
View SourcePagedModel()
Initializes a new instance of the PagedModel<T> class.
Declaration
public PagedModel()
PagedModel(long, IEnumerable<T>)
Initializes a new instance of the PagedModel<T> class with the specified total and items.
Declaration
public PagedModel(long total, IEnumerable<T> items)
Parameters
| Type | Name | Description |
|---|---|---|
| long | total | The total number of items available. |
| IEnumerable<T> | items | The items for the current page. |
Properties
View SourceItems
Gets the items for the current page.
Declaration
public IEnumerable<T> Items { get; init; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<T> |
Total
Gets the total number of items available across all pages.
Declaration
public long Total { get; init; }
Property Value
| Type | Description |
|---|---|
| long |