ContentBySearchWebPart.NumberOfItems property

Specifies the number of items that should be displayed from the search results. The default value is 3.

Namespace:  Microsoft.Office.Server.Search.WebControls
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(True)> _
Public Property NumberOfItems As Integer
    Get
    Set
'Usage
Dim instance As ContentBySearchWebPart
Dim value As Integer

value = instance.NumberOfItems

instance.NumberOfItems = value
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(true)]
public int NumberOfItems { get; set; }

Property value

Type: System.Int32

See also

Reference

ContentBySearchWebPart class

ContentBySearchWebPart members

Microsoft.Office.Server.Search.WebControls namespace