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: 2023.0.3.0 (2023.0.3.0)
C#
public enum UnsupportedTargetAction
Member name | Value | Description | |
---|---|---|---|
Default | 0 | Same as Fail. | |
Fail | 0 | Emit a build-time error when the target declaration is not supported by the aspect. This is the default behavior. | |
Ignore | 1 | Do not apply the advice when the target declaration is not supported but do not emit a build error. | |
Fallback | 2 | 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. If no fallback is available, emit a build-time error. |