AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IPortalSearchRequest.SetResultsCount Method

Sets the first result (where to start) and maxResults (how many results to return).

void SetResultsCount(
int firstResult,
int maxResults
);

#### Parameters

firstResult
  The first result to return, for example "0". The first result is zero-based.
maxResults
  The maximum number of results to return at a time.

#### Remarks

If this method is not called, firstResult will default to 0 and maxResults to 10.

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentException | firstResult or maxResults are negative.

#### See Also

IPortalSearchRequest Interface | Plumtree.Remote.PRC.Search Namespace