Plumtree EDK (Enterprise Web Development Kit) 5.4.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
  first result to return, e.g. 0. The first result is 0 based and not 1 based.
maxResults
  maximum number of results to return at a time, e.g. 10

#### Remarks

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

#### Exceptions

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

#### See Also

IPortalSearchRequest Interface | Plumtree.Remote.PRC.Search Namespace