Compartilhar via


DocumentDiagnostic Constructors

Definition

Overloads

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.

DocumentDiagnostic(TextRange, String)

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

public DocumentDiagnostic (Microsoft.VisualStudio.Extensibility.Editor.TextRange span, string message);
new Microsoft.VisualStudio.Extensibility.Languages.DocumentDiagnostic : Microsoft.VisualStudio.Extensibility.Editor.TextRange * string -> Microsoft.VisualStudio.Extensibility.Languages.DocumentDiagnostic
Public Sub New (span As TextRange, message As String)

Parameters

span
TextRange

Span that the diagnostic is located on in a specific ITextDocument.

message
String

String of text to be shown as the diagnostic description.

Applies to

DocumentDiagnostic(Uri, Range, String)

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

public DocumentDiagnostic (Uri uri, Microsoft.VisualStudio.RpcContracts.Utilities.Range range, string message);
new Microsoft.VisualStudio.Extensibility.Languages.DocumentDiagnostic : Uri * Microsoft.VisualStudio.RpcContracts.Utilities.Range * string -> Microsoft.VisualStudio.Extensibility.Languages.DocumentDiagnostic
Public Sub New (uri As Uri, range As Range, message As String)

Parameters

uri
Uri

Uri of the document the diagnostic belongs on.

range
Range

Location of the document that contains the diagnostic.

message
String

String of text to be shown as the diagnostic description.

Applies to