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#
IQuery SetEnum(
	string name,
	Enum val
)
Visual Basic
Function SetEnum ( _
	name As String, _
	val As Enum _
) As IQuery
Visual C++
IQuery^ 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

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

See Also