QuerySpecExtensionMethodsPageTQuery Method  | 
 
            Sets the paging data: the page size and the page number to retrieve, where 0 for one of them means no paging. Valid page sizes and page numbers
            are 1 or greater.
            
 
    Namespace: 
   SD.LLBLGen.Pro.QuerySpec
    Assembly:
   SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntaxpublic static TQuery Page<TQuery>(
	this TQuery query,
	int pageNumber,
	int pageSize
)
where TQuery : QuerySpec
<ExtensionAttribute>
Public Shared Function Page(Of TQuery As QuerySpec) ( 
	query As TQuery,
	pageNumber As Integer,
	pageSize As Integer
) As TQuery
Parameters
- query
 - Type: TQuery
The query. - pageNumber
 - Type: SystemInt32
The page number. - pageSize
 - Type: SystemInt32
Size of the page. 
Type Parameters
- TQuery
 - The type of the query.
 
Return Value
Type: 
TQueryUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see 
Extension Methods (Visual Basic) or 
Extension Methods (C# Programming Guide).
RemarksSetting Page data by calling this page makes a Limit be ignored.
See Also