閱讀英文

共用方式為


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

傳回

適用於