Open sandboxFocus

Method Suppress

Suppress(ISuppression)

Suppresses a diagnostic from the default declaration of the current ScopedDiagnosticSink.

Declaration
public void Suppress(ISuppression suppression)
Parameters
Type Name Description
ISuppression suppression

Suppress(ISuppression, IDeclaration)

Suppresses a diagnostic by specifying the declaration in which the suppression must be effective.

Declaration
public void Suppress(ISuppression suppression, IDeclaration scope)
Parameters
Type Name Description
ISuppression suppression

The suppression definition, which must be defined as a static field or property.

IDeclaration scope

The declaration in which the diagnostic must be suppressed.