Set or clear listener for a given ListenerType.

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

Syntax

C#
public void SetListener(
	ListenerType type,
	Object listener
)
Visual Basic
Public Sub SetListener ( _
	type As ListenerType, _
	listener As Object _
)
Visual C++
public:
void SetListener(
	ListenerType type, 
	Object^ listener
)

Parameters

type
Type: NHibernate.Event..::..ListenerType
The ListenerType.
listener
Type: System..::..Object
The listener for type or null to clear.

Remarks

listener must implements the interface related with type.

See Also