共用方式為


Diagnostic.DefaultSeverity 屬性

定義

DiagnosticSeverity取得診斷 的預設 DiagnosticDescriptor

public:
 virtual property Microsoft::CodeAnalysis::DiagnosticSeverity DefaultSeverity { Microsoft::CodeAnalysis::DiagnosticSeverity get(); };
public virtual Microsoft.CodeAnalysis.DiagnosticSeverity DefaultSeverity { get; }
member this.DefaultSeverity : Microsoft.CodeAnalysis.DiagnosticSeverity
Public Overridable ReadOnly Property DefaultSeverity As DiagnosticSeverity

屬性值

備註

若要取得診斷的有效嚴重性,請使用 Severity

適用於