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

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

Syntax

C#
IDetachedQuery SetEnum(
	int position,
	Enum val
)
Visual Basic
Function SetEnum ( _
	position As Integer, _
	val As Enum _
) As IDetachedQuery
Visual C++
IDetachedQuery^ SetEnum(
	int position, 
	Enum^ 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

Return Value

[Missing <returns> documentation for "M:NHibernate.IDetachedQuery.SetEnum(System.Int32,System.Enum)"]

See Also