summaryM:DotNetNuke.Collections.PagingExtensions.ToPagedList``1(System.Collections.Generic.IEnumerable{``0},System.Int32,System.Int32)

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

Syntax

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

Parameters

source
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'T>)>)>
paramsourceM:DotNetNuke.Collections.PagingExtensions.ToPagedList``1(System.Collections.Generic.IEnumerable{``0},System.Int32,System.Int32)
pageIndex
Type: System..::..Int32
parampageIndexM:DotNetNuke.Collections.PagingExtensions.ToPagedList``1(System.Collections.Generic.IEnumerable{``0},System.Int32,System.Int32)
pageSize
Type: System..::..Int32
parampageSizeM:DotNetNuke.Collections.PagingExtensions.ToPagedList``1(System.Collections.Generic.IEnumerable{``0},System.Int32,System.Int32)

Type Parameters

T
typeparamTM:DotNetNuke.Collections.PagingExtensions.ToPagedList``1(System.Collections.Generic.IEnumerable{``0},System.Int32,System.Int32)

Return Value

returnsM:DotNetNuke.Collections.PagingExtensions.ToPagedList``1(System.Collections.Generic.IEnumerable{``0},System.Int32,System.Int32)

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