Set a limit upon the number of objects to be retrieved

Namespace: NHibernate
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
ICriteria SetMaxResults(
	int maxResults
)
Visual Basic
Function SetMaxResults ( _
	maxResults As Integer _
) As ICriteria
Visual C++
ICriteria^ SetMaxResults(
	int maxResults
)

Parameters

maxResults
Type: System..::..Int32

[Missing <param name="maxResults"/> documentation for "M:NHibernate.ICriteria.SetMaxResults(System.Int32)"]

Return Value

[Missing <returns> documentation for "M:NHibernate.ICriteria.SetMaxResults(System.Int32)"]

See Also