CodeAnalysisService.SetProblemSuppressor Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the problem suppression predicate to be applied when suppressing rules. This is an optional feature that supports ignoring problems raised by a rule. The problem might be suppressed based on the element the problem was raised against, or the source that the problem was found in.
public void SetProblemSuppressor (Predicate<Microsoft.SqlServer.Dac.CodeAnalysis.SqlRuleProblemSuppressionContext> shouldSuppressProblem);
member this.SetProblemSuppressor : Predicate<Microsoft.SqlServer.Dac.CodeAnalysis.SqlRuleProblemSuppressionContext> -> unit
Public Sub SetProblemSuppressor (shouldSuppressProblem As Predicate(Of SqlRuleProblemSuppressionContext))
Parameters
- shouldSuppressProblem
- Predicate<SqlRuleProblemSuppressionContext>
Predicate that should examine the suppression context and decide whether the problem needs to be suppressed