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)

Syntax

Visual Basic (Declaration)
Public Overridable Sub SetMaxRecords( _ 
   ByVal maxRecords As Integer _ 
)
C#
public virtual void SetMaxRecords(
   int maxRecords
)
C++
public:
 virtual void SetMaxRecords(
   int maxRecords
)
J#
public virtual void SetMaxRecords(
   int maxRecords
)
JScript
public virtual  function SetMaxRecords(
   maxRecords : int
)

Parameters

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

Exceptions

Exception TypeCondition
EngineRuntimeException Thrown when the parameter is Null or invalid.

See Also