Open sandboxFocus

Class OnExceptionAspectConfigurationAttribute

Custom attribute that, when applied to a class implementing IOnExceptionAspect, defines the configuration of that aspect.

Inheritance
OnExceptionAspectConfigurationAttribute
Namespace: PostSharp.Aspects.Configuration
Assembly: PostSharp.dll
Syntax
public sealed class OnExceptionAspectConfigurationAttribute : AspectConfigurationAttribute
Remarks

A property set by this custom attribute takes precedence over the value that the aspect provides imperatively, for example from GetExceptionType(MethodBase). When this custom attribute sets the same property on several classes of the aspect hierarchy, the value from the most derived class wins.

Constructors

Name Description
OnExceptionAspectConfigurationAttribute()

Properties

Name Description
ExceptionType

Gets or sets the type of exceptions that are caught by this aspect.

Methods

Name Description
CreateAspectConfiguration()

Creates a concrete AspectConfiguration instance specifically for the current AspectConfigurationAttribute type.

SetAspectConfiguration(AspectConfiguration)

Sets up an AspectConfiguration object according to the current custom attribute instance.

See Also