Class MessageInfo
Represents a diagnostic message emitted by the compiler, such as an error message.
public class MessageInfo
- Inheritance
-
MessageInfo
- Inherited Members
- Extension Methods
Properties
Code
The kind of error that the current MessageInfo instance represents.
public MessageCode Code { get; set; }
Property Value
CustomCode
Supports custom error codes to be used by analyzers.
public string CustomCode { get; set; }
Property Value
File
The name of the document the message originates from.
public string File { get; set; }
Property Value
HideCodePosition
Specifies wheter or not to display the code location in the generated output.
public bool HideCodePosition { get; set; }
Property Value
Length
The length, in characters, of underlying code section the message refers to.
public int Length { get; set; }
Property Value
Location
The starting position of the message in the document.
public (int Line, int Column) Location { get; set; }
Property Value
Severity
The severity of the message.
public Severity Severity { get; set; }
Property Value
Source
The source of the message.
public MessageSource Source { get; set; }
Property Value
Text
The text of the message.
public string Text { get; set; }
Property Value
TextTemplate
A text template for the message.
public (string Identifier, object[] Arguments) TextTemplate { get; set; }
Property Value
- (string Identifier, object[] Arguments)
Tip
Advanced information about the message aiding the user in debugging the cause of an error.
public string Tip { get; set; }
Property Value
TipTemplate
A text template for the tip.
public (string Identifier, object[] Arguments) TipTemplate { get; set; }
Property Value
- (string Identifier, object[] Arguments)
ToolTip
A tooltip representing the message.
public Tooltip ToolTip { get; set; }
Property Value
Methods
ToString()
Converts the message into a human-readable format.
public override string ToString()
Returns
- string
A friendly representation of the message.