Partager via


DocumentDiagnostic Class

Definition

Class that represents a document diagnostic. Contains information about a span of text in a document that holds an error, warning, information, or hint.

public sealed class DocumentDiagnostic
type DocumentDiagnostic = class
Public NotInheritable Class DocumentDiagnostic
Inheritance
DocumentDiagnostic

Constructors

DocumentDiagnostic(TextRange, String)

Initializes a new instance of the DocumentDiagnostic class that belongs on an open document.

DocumentDiagnostic(Uri, Range, String)

Initializes a new instance of the DocumentDiagnostic class that belongs on a closed document.

Properties

ErrorCode

Gets the diagnostic code for the diagnostic.

HelpLink

Gets the uri linked to the diagnostic code for extra information.

ProviderName

Gets the localized string describing the tool that generated the diagnostic.

Severity

Gets the severity of the diagnostic.

Applies to