Bind an instance of a persistent enumeration class to a named parameter
            using an NHibernate PersistentEnumType.
            
Namespace: NHibernateAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
| C# | 
|---|
IDetachedQuery SetEnum( string name, Enum val )  | 
| Visual Basic | 
|---|
Function SetEnum ( _ name As String, _ val As Enum _ ) As IDetachedQuery  | 
| Visual C++ | 
|---|
IDetachedQuery^ 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.IDetachedQuery.SetEnum(System.String,System.Enum)"]