Share via


Diagnostic Class

Definition

Class containing all the information needed to describe a diagnostic.

public ref class Diagnostic
[System.Runtime.Serialization.DataContract]
public class Diagnostic
[<System.Runtime.Serialization.DataContract>]
type Diagnostic = class
Public Class Diagnostic
Inheritance
Diagnostic
Attributes

Constructors

Diagnostic(String, String, DiagnosticSeverity, Range, DiagnosticTags, IReadOnlyList<DiagnosticRelatedInformation>, String, String, String, Nullable<Int32>, String, IReadOnlyList<ProjectIdentifier>, String, String, Nullable<Int32>)

Initializes a new instance of the Diagnostic class.

Diagnostic(String, String, DiagnosticSeverity, Range, String, DiagnosticTags, IReadOnlyList<DiagnosticRelatedInformation>, String, String, String, Nullable<Int32>, String, IReadOnlyList<ProjectIdentifier>, String, String, Nullable<Int32>)

Initializes a new instance of the Diagnostic class.

Properties

Code

Gets the diagnostic code for the diagnostic.

CustomEditorDiagnosticRepresentation

Gets the name of EditorFromatDefiniton to override the default representation of diagnostics in the editor offered by the Diagnostics Service.

DiagnosticRank

Gets an integer indicating the rank of the diagnostic.

DiagnosticType

Gets a localized string describing the type of the diagnostic (e.g. "Security", "Performance", "Threading", etc.).

ExpandedMessage

Gets the expanded description of the diagnostic.

HelpLink

Gets the help like that describes the diagnostic.

Identifier

Gets the identifier used to indicate whether two distinct diagnsotics (possibly from different sources) can be merged.

Message

Gets the localized description of the diagnostic.

OutputId

Gets the identifier used to link the diagnostic to a line of text in the output window.

Projects

Gets the projects in which this diagnostic was reported.

Range

Gets the location of the diagnostic in the document.

RelatedInformation

Gets the DiagnosticRelatedInformation associated with the diagnostic.

Severity

Gets the severity of the diagnostic.

Source

Gets a localized string describing the tool that generated the diagnostic (e.g. "FxCop", "msbuild", etc.).

Tags

Gets the DiagnosticTags associated with the diagnostic.

ToolTip

Gets the tool tip displayed when the user hovers over the error in the error list.

Applies to