Share via


QueryBasedCollection<T>.QueryNext Method

Advances the collection to the next subset of paged data.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Function QueryNext As Boolean
'Usage
Dim instance As QueryBasedCollection
Dim returnValue As Boolean

returnValue = instance.QueryNext()
public bool QueryNext()

Return Value

Type: System.Boolean
True if a new set of paged data is retrieved; otherwise, false, which means that there is no remaining paged data available.

Remarks

This method populates the collection with the next subset of paged data available. The maximum size of the subset is based on the row limit that was specified when the collection was initially created or retrieved. This value is available in the RowLimit property. If no row limit was specified when the collection was created or retrieved then the value of RowLimit is zero and the collection will have already been retrieved in its entirety. In this case, the QueryNext method has no affect and will return false. The same is true if the row limit was explicitly set to zero.

See Also

Reference

QueryBasedCollection<T> Class

QueryBasedCollection<T> Members

Microsoft.SharePoint.Publishing Namespace

RowLimit