Click or drag to resize

InterceptorOptionsAttribute Properties

The InterceptorOptionsAttribute type exposes the following members.

Properties
  NameDescription
Public propertyAlwaysCreateNewInstance
Gets or sets a value that indicates if a new instance of the interceptor attribute is created every method or property call or not.

If false the interceptor instance will be reused for every call, those maintaining its instance; otherwise a new instance is created.

This option is available for IPropertyGetterInterceptor, IPropertySetterInterceptor, IPropertyInterceptor, IMethodInterceptor and ISimpleMethodInterceptor. This has no effect if the interceptor is implementing the IPropertyInterceptorInitialize interface.

The default value is false.

Top
See Also