PostSharp 6.10 / / Post­Sharp Documentation / 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: (
public UnsupportedTargetAction UnsupportedTargetAction { get; set; }

Property Value

Type: UnsupportedTargetAction
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