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

Constructor SuppressionDefinition

SuppressionDefinition(String)

Initializes a new instance of the SuppressionDefinition class.

Declaration
public SuppressionDefinition(string suppressedDiagnosticId)
Parameters
Type Name Description
String suppressedDiagnosticId

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