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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.