PostSharp5.0/API Reference/Post­Sharp.​Aspects Namespace/Unsupported­Target­Action Enumeration

UnsupportedTargetAction Enumeration

Enumerates actions that can be taken when an aspect is applied to a target element that is not currently supported.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public enum UnsupportedTargetAction
Members
  Member nameValueDescription
Default0Fail
Fail0 Emit a build-time error when the target declaration is not supported by the aspect. This is the default behavior.
Ignore1 Do not apply the advise when the target declaration is not supported but do not emit a build error.
Fallback2 Fall back to a supported advising strategy if any is available, e.g. from semantic advising (taking into account async semantics) to non-semantic advising.
See Also