Suppress(ISuppression)
Suppresses a diagnostic within the default declaration scope of this scoped sink.
Declaration
public void Suppress(ISuppression suppression)Parameters
| Type | Name | Description |
|---|---|---|
| ISuppression | suppression | The suppression definition, which must be defined as a static field in a compile-time class. |
Implements
Suppress(ISuppression, IDeclaration)
Suppresses a diagnostic within a specific declaration scope instead of the default scope.
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 in a compile-time class. |
| IDeclaration | scope | The declaration within which the diagnostic should be suppressed. |