Set or clear listeners 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 SetListeners(
	ListenerType type,
	Object[] listeners
)
Visual Basic
Public Sub SetListeners ( _
	type As ListenerType, _
	listeners As Object() _
)
Visual C++
public:
void SetListeners(
	ListenerType type, 
	array<Object^>^ listeners
)

Parameters

type
Type: NHibernate.Event..::..ListenerType
The ListenerType.
listeners
Type: array<System..::..Object>[]()[][]
The listener for type or null to clear.

Remarks

Listeners of listeners must implements one of the interface of event listenesr.

See Also