Partilhar via


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