Class PagedResult<T>
Represents a paged result for a model collection
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
[DataContract(Name = "pagedCollection", Namespace = "")]
[Obsolete("Superseded by PagedModel for service layer and below OR PagedViewModel in apis. Expected to be removed when skip/take pattern has been fully implemented v14+")]
public class PagedResult<T> : PagedResult
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
View SourcePagedResult(long, long, long)
Initializes a new instance of the PagedResult<T> class.
Declaration
public PagedResult(long totalItems, long pageNumber, long pageSize)
Parameters
| Type | Name | Description |
|---|---|---|
| long | totalItems | The total number of items. |
| long | pageNumber | The current page number (1-based). |
| long | pageSize | The number of items per page. |
Properties
View SourceItems
Gets or sets the items for the current page.
Declaration
[DataMember(Name = "items")]
public IEnumerable<T>? Items { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<T> |