CodeAnalysisService.SetProblemSuppressor 方法

定义

设置抑制规则时要应用的问题抑制谓词。 这是一项可选功能,支持忽略规则引发的问题。 问题可能会根据问题引发的元素或发现问题的来源取消显示。

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))

参数

shouldSuppressProblem
Predicate<SqlRuleProblemSuppressionContext>

应检查抑制上下文的谓词,并确定是否需要取消该问题

适用于