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

Namespace: DotNetNuke.Collections
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static PageSelector<T> InPagesOf<T>(
	this IEnumerable<T> source,
	int pageSize
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function InPagesOf(Of T) ( 
	source As IEnumerable(Of T),
	pageSize As Integer
) As PageSelector(Of T)

Parameters

source
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'T>)>)>
The source object being filtered
pageSize
Type: System..::..Int32
The page size to use

Type Parameters

T
The type of the object being filtered

Return Value

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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<(Of <(<'T>)>)>. When you use instance method syntax to call this method, omit the first parameter. For more information, see [b8020aae-374d-46a9-bcb7-8cc2390b93b6] or [175ce3ff-9bbf-4e64-8421-faeb81a0bb51].

See Also