ContentByQueryWebPart.ItemLimit property

Gets or sets the limit of number of items to query.

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

'Declaration
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(False)> _
Public Property ItemLimit As Integer
	Get
	Set
'Usage
Dim instance As ContentByQueryWebPart
Dim value As Integer

value = instance.ItemLimit

instance.ItemLimit = value

Property value

Type: System.Int32

For unlimited number of items, set this property value to -1.

Show: