QueryBasedCollection<T>.RowLimit property

Gets the maximum number of items that can be contained in a collection that is using data paging.

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

Syntax

'Declaration
Public ReadOnly Property RowLimit As UInteger
    Get
'Usage
Dim instance As QueryBasedCollection
Dim value As UInteger

value = instance.RowLimit
public uint RowLimit { get; }

Property value

Type: System.UInt32
The maximum number of items that can be contained in a collection that is using data paging.

Remarks

The QueryNext method uses this RowLimit property to determine the maximum number of remaining items to retrieve each time it is called. This property can only be set when the collection is initially created or retrieved. It may be set explicitly as a parameter in a collection retrieval method or by setting the SPQuery.RowLimit property of an SPQuery that the collection is based upon. If this value is zero, the collection does not use data paging. In this case, the collection is populated with all items when it is created, and QueryNext has no effect.

See also

Reference

QueryBasedCollection<T> class

QueryBasedCollection<T> members

Microsoft.SharePoint.Publishing namespace

QueryNext