Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Diagnostics / Suppression­Definition

Class SuppressionDefinition

Defines the suppression of a kind of diagnostics. Suppressions must be defined as static fields or properties of an aspect classes. Suppressions are instantiated with Suppress(SuppressionDefinition, IDeclaration).

Inheritance
SuppressionDefinition
Namespace: Metalama.Framework.Diagnostics
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public sealed class SuppressionDefinition : Object

Constructors

Name Description
SuppressionDefinition(String)

Initializes a new instance of the SuppressionDefinition class.

Properties

Name Description
SuppressedDiagnosticId

Gets the ID of the diagnostic to be suppressed (e.g. CS0169).

See Also