DiagnosticRelatedInformation Class

Definition

Represents a related message and source code location for a diagnostic.

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

Remarks

This should be used to point to code locations that cause or are related to a diagnostics, e.g when duplicating a symbol in a scope.

This class is intended to be very similar to the LSP DiagnosticRelatedInformation.

Constructors

DiagnosticRelatedInformation(String, Int32, Range, String)

Initializes a new instance of the DiagnosticRelatedInformation class.

Properties

DocumentMoniker

Gets the name of the document containing the diagnostics.

DocumentVersionNumber

Gets the version number of the document.

Message

Gets the message of this related diagnostic information.

Range

Gets the location in DocumentMoniker of the related information.

Applies to