Help > Web Development > Object Reference > Object Reference > ISYSSearch > MaxRows Property
<a name="kanchor536"></a>ISYSSearch:MaxRows Property
Indicates the maximum number of results to return.

Syntax
[VBScript]
 property ISYSSearch.MaxRows
[C#]
void ISYSSearch.MaxRows {get;put;}
[ColdFusion/Java]
void ISYSSearch.MaxRows() throws ComException;
void ISYSSearch.set_MaxRows( void value );
Examples
[VBScript]
<% ' This sample demostrates creating a new ISYSSearch object and specifying the ' QueryText, QuerySource and QueryType, filtering it and executing it to get ' the result list. ' Create the new ISYSSearch object dim ISYSSearch : set ISYSSearch = ISYSEngine.NewSearch ' Specify the Index to Search ISYSSearch.QuerySource = "c:\indexes\documents" ' Specify the Query Text ISYSSearch.QueryText = "Policies" ' Specify the Query Type ISYSSearch.QueryType = isysQueryISYS ' Limit the number of results to 1000 ISYSSearch.MaxRows = 1000 ' Execute the Search dim SearchResults : set SearchResults = ISYSSearch.Execute %>