Diagnostic.GetSuppressionInfo(Compilation) 方法

定义

获取 SuppressionInfo 已取消的诊断,即 IsSuppressed = true。 否则,返回 null。

public:
 Microsoft::CodeAnalysis::Diagnostics::SuppressionInfo ^ GetSuppressionInfo(Microsoft::CodeAnalysis::Compilation ^ compilation);
public Microsoft.CodeAnalysis.Diagnostics.SuppressionInfo GetSuppressionInfo (Microsoft.CodeAnalysis.Compilation compilation);
public Microsoft.CodeAnalysis.Diagnostics.SuppressionInfo? GetSuppressionInfo (Microsoft.CodeAnalysis.Compilation compilation);
member this.GetSuppressionInfo : Microsoft.CodeAnalysis.Compilation -> Microsoft.CodeAnalysis.Diagnostics.SuppressionInfo
Public Function GetSuppressionInfo (compilation As Compilation) As SuppressionInfo

参数

compilation
Compilation

返回

适用于