Creates a paged list containing objects from a collection of items
Namespace: DotNetNuke.CollectionsAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public PagedList( IEnumerable<T> items, int totalCount, int pageIndex, int pageSize ) |
Visual Basic |
---|
Public Sub New ( items As IEnumerable(Of T), totalCount As Integer, pageIndex As Integer, pageSize As Integer ) |
Parameters
- items
- Type: System.Collections.Generic..::..IEnumerable<(Of <(<'T>)>)>
The items that constitute the page
- totalCount
- Type: System..::..Int32
The total number of items in the original source
- pageIndex
- Type: System..::..Int32
The index of the page to retrieve
- pageSize
- Type: System..::..Int32
The size of the page to retrieve