PostSharp6.5//API Reference/Post­Sharp.​Aspects Namespace/Aspect Class/Aspect Properties/Aspect.​Unsupported­Target­Action Property

Aspect.UnsupportedTargetAction Property

Specifies the action to take when the aspect is applied to an unsupported target element. This property affects only simple aspects, not composite aspects.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 6.5.4.0 (6.5.4.0)
Syntax
C#
public UnsupportedTargetAction UnsupportedTargetAction { get; set; }

Property Value

Type: UnsupportedTargetAction
Remarks
This property only affects the built-in advices of the simple aspect classes, not advices of composite aspects. See the conceptual documentation for details. For composite aspects, use the UnsupportedTargetAction property of the advice custom attribute, e.g. UnsupportedTargetAction.
See Also