CodeAnalysisService.SetProblemSuppressor 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置抑制规则时要应用的问题抑制谓词。 这是一项可选功能,支持忽略规则引发的问题。 问题可能会根据问题引发的元素或发现问题的来源取消显示。
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>
应检查抑制上下文的谓词,并确定是否需要取消该问题