Diagnostic.DefaultSeverity 属性

定义

获取诊断DiagnosticDescriptor的默认值DiagnosticSeverity

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

适用于