Share via


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)

Syntax

'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
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(false)]
public int ItemLimit { get; set; }

Property Value

Type: System.Int32

Remarks

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

See Also

Reference

ContentByQueryWebPart Class

ContentByQueryWebPart Members

Microsoft.SharePoint.Publishing.WebControls Namespace

ContentByQueryWebPart