Diagnostic.Severity Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the effective DiagnosticSeverity of the diagnostic.
public:
abstract property Microsoft::CodeAnalysis::DiagnosticSeverity Severity { Microsoft::CodeAnalysis::DiagnosticSeverity get(); };
public abstract Microsoft.CodeAnalysis.DiagnosticSeverity Severity { get; }
member this.Severity : Microsoft.CodeAnalysis.DiagnosticSeverity
Public MustOverride ReadOnly Property Severity As DiagnosticSeverity
Property Value
Remarks
To get the default severity of diagnostic's DiagnosticDescriptor, use DefaultSeverity. To determine if this is a warning treated as an error, use IsWarningAsError.
Applies to
GitHub'da bizimle işbirliği yapın
Bu içeriğin kaynağı GitHub'da bulunabilir; burada ayrıca sorunları ve çekme isteklerini oluşturup gözden geçirebilirsiniz. Daha fazla bilgi için katkıda bulunan kılavuzumuzu inceleyin.