Open sandboxFocus

Method Suppress

Suppress(ISuppression, IDeclaration, IDiagnosticSource)

Suppresses a diagnostic within a specific declaration scope.

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

The suppression definition, which specifies the diagnostic ID to suppress.

IDeclaration scope

The declaration within which the diagnostic should be suppressed.

IDiagnosticSource source

The source performing the suppression.