Suppress(ISuppression, IDeclaration, IDiagnosticSource)
Suppresses a diagnostic by specifying the declaration in which the suppression must be effective.
Declaration
void Suppress(ISuppression suppression, IDeclaration scope, IDiagnosticSource source)Parameters
| Type | Name | Description |
|---|---|---|
| ISuppression | suppression | The suppression. |
| IDeclaration | scope | The declaration in which the diagnostic must be suppressed. |
| IDiagnosticSource | source |