Sets the default interceptor for use by all sessions.
Namespace:
NHibernate.CfgAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function SetInterceptor ( _ interceptor As IInterceptor _ ) As Configuration |
C# |
---|
public Configuration SetInterceptor( IInterceptor interceptor ) |
Visual C++ |
---|
public: Configuration^ SetInterceptor( IInterceptor^ interceptor ) |
JavaScript |
---|
function setInterceptor(interceptor); |
Parameters
- interceptor
- Type: NHibernate..::.IInterceptor
The default interceptor.