Open sandboxFocus

Property Filter

Filter

Gets an optional filter predicate that determines which diagnostics should be suppressed.

Declaration
Func<ISuppressibleDiagnostic, bool>? Filter { get; }
Property Value
Type Description
Func<ISuppressibleDiagnostic, bool>
Remarks

If null, all diagnostics with the ID specified in Definition are suppressed. If not null, only diagnostics for which the predicate returns true are suppressed. Use WithFilter(Func<ISuppressibleDiagnostic, bool>) to create filtered suppressions.