Open sandboxFocus

Constructor SuppressionDefinition

SuppressionDefinition(string, string?)

Initializes a new instance of the SuppressionDefinition class.

Declaration
public SuppressionDefinition(string suppressedDiagnosticId, string? justification = null)
Parameters
Type Name Description
string suppressedDiagnosticId

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

string justification