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
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.