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

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

Syntax

C#
IMultiQuery SetEnum(
	string name,
	Enum val
)
Visual Basic
Function SetEnum ( _
	name As String, _
	val As Enum _
) As IMultiQuery
Visual C++
IMultiQuery^ SetEnum(
	String^ name, 
	Enum^ val
)

Parameters

name
Type: System..::..String
The name of the parameter
val
Type: System..::..Enum
A non-null instance of a persistent enumeration

Return Value

The instance for method chain.

See Also