PostSharp 2023.0 / / Post­Sharp Documentation / 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: 2023.0.3.0 (2023.0.3.0)
public enum UnsupportedTargetAction
  Member nameValueDescription
Default0 Same as Fail.
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 advice 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. If no fallback is available, emit a build-time error.
See Also