PostSharpAPI ReferencePost­Sharp.​AspectsAspectUnsupported­Target­Action
Open sandboxFocus

Aspect.UnsupportedTargetAction Property

UnsupportedTargetAction

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

Declaration
public UnsupportedTargetAction UnsupportedTargetAction { get; set; }
Property Value
Type Description
UnsupportedTargetAction
Remarks

This property only affects the built-in advices of the simple aspect classes, not advices of composite aspects. See Developing Custom Aspects for details. For composite aspects, use the UnsupportedTargetAction property of the advice custom attribute, e.g. UnsupportedTargetAction.