• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class PagingExtensions

Contains filters that can be applied to stores.

Inheritance
System.Object
PagingExtensions
Namespace: DotNetNuke.Collections
Assembly: DotNetNuke.dll
Syntax
public static class PagingExtensions : object

Methods

| Improve this Doc View Source

InPagesOf<T>(IEnumerable<T>, Int32)

Filters the incoming store to retrieve pages of a specified size.

Declaration
public static PageSelector<T> InPagesOf<T>(this IEnumerable<T> source, int pageSize)
Parameters
Type Name Description
IEnumerable<T> source

The source object being filtered.

System.Int32 pageSize

The page size to use.

Returns
Type Description
PageSelector<T>

A PageSelector<T> object that is used to select a single page of data from the data source.

Type Parameters
Name Description
T

The type of the object being filtered.

| Improve this Doc View Source

ToPagedList<T>(IEnumerable<T>, Int32, Int32)

Converts an into an IPagedList<T>.

Declaration
public static IPagedList<T> ToPagedList<T>(this IEnumerable<T> source, int pageIndex, int pageSize)
Parameters
Type Name Description
IEnumerable<T> source

The source to convert.

System.Int32 pageIndex

The page index requested.

System.Int32 pageSize

The page size requested.

Returns
Type Description
IPagedList<T>

A IPagedList<T> object that is used to select a single page of data from the data source.

Type Parameters
Name Description
T

The type of the items in the source.

  • View Source
Back to top by the community, for the community... #DNNCMS