Condividi tramite


CodeAnalysisService.SetProblemSuppressor Method

Definition

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

Applies to