DiagnosticDescriptor Class

Definition

Provides a description about a Diagnostic

C#
public sealed class DiagnosticDescriptor : IEquatable<Microsoft.CodeAnalysis.DiagnosticDescriptor>
Inheritance
DiagnosticDescriptor
Implements

Constructors

Properties

Category

The category of the diagnostic (like Design, Naming etc.)

CustomTags

Custom tags for the diagnostic.

DefaultSeverity

The default severity of the diagnostic.

Description

An optional longer localizable description for the diagnostic.

HelpLinkUri

An optional hyperlink that provides more detailed information regarding the diagnostic.

Id

An unique identifier for the diagnostic.

IsEnabledByDefault

Returns true if the diagnostic is enabled by default.

MessageFormat

A localizable format message string, which can be passed as the first argument to Format(String, Object[]) when creating the diagnostic message with this descriptor.

Title

A short localizable title describing the diagnostic.

Methods

Equals(DiagnosticDescriptor)
Equals(Object)
GetEffectiveSeverity(CompilationOptions)

Gets the effective severity of diagnostics created based on this descriptor and the given CompilationOptions.

GetHashCode()

Applies to

Toode Versioonid
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0