Bind an instance of a persistent enumeration class to an indexed parameter using an NHibernate PersistentEnumType.

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

Syntax

Visual Basic (Declaration)
Function SetEnum ( _
	position As Integer, _
	val As Enum _
) As IQuery
C#
IQuery SetEnum(
	int position,
	Enum val
)
Visual C++
IQuery^ SetEnum(
	int position, 
	Enum^ val
)
JavaScript
function setEnum(position, val);

Parameters

position
Type: System..::.Int32
The position of the parameter in the query string, numbered from 0
val
Type: System..::.Enum
A non-null instance of a persistent enumeration

See Also