Sets the default interceptor for use by all sessions.

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

Syntax

C#
public Configuration SetInterceptor(
	IInterceptor newInterceptor
)
Visual Basic
Public Function SetInterceptor ( _
	newInterceptor As IInterceptor _
) As Configuration
Visual C++
public:
Configuration^ SetInterceptor(
	IInterceptor^ newInterceptor
)

Parameters

newInterceptor
Type: NHibernate..::..IInterceptor
The default interceptor.

Return Value

This configuration instance.

See Also