Click or drag to resize
DataQueryBaseTQueryForEachPage Method
Executes the given action for each page (DataSet) in the results. If the query is not set up as a paged query before calling this method and pageSize is not set, executes the action once with the current results.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
public void ForEachPage(
	Action<TQuery> pageAction,
	int pageSize = -1


Type: SystemActionTQuery
Action which will be executed for each page
pageSize (Optional)
Type: SystemInt32
Page size. 0 means no processing page-by-page. By default uses current paging settings. Page size of the query is set to the original value after this method finishes.
See Also