Sets the maximum number of rows that can be returned in the result set. When unspecified, all records that satisfy the query will be returned, subject to the limit of the IServerCacheConfiguration property NonPagedQueryMaxSize.

Namespace:  FileNet.Api.Query
Assembly:  FileNet.Api (in FileNet.Api.dll)

ToggleSyntax

Visual Basic (Declaration)
Public Overridable Sub SetMaxRecords ( _
	maxRecords As Integer _
)
C#
public virtual void SetMaxRecords(
	int maxRecords
)
Visual C++
public:
virtual void SetMaxRecords(
	int maxRecords
)
JavaScript
function setMaxRecords(maxRecords);

Parameters

maxRecords
Type: System..::.Int32
An Integer specifying the maximum number of rows to be returned. If unspecified, the limit is determined by IServerCacheConfiguration.NonPagedQueryMaxSize.

ToggleExceptions

ExceptionCondition
FileNet.Api.Exception..::.EngineRuntimeException Thrown when the parameter is Null or invalid.

ToggleSee Also