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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.