DiagnosticMessage Class

A single diagnostic message.

Namespace
Microsoft.AspNetCore.Diagnostics
Assemblies
  • Microsoft.AspNetCore.Diagnostics.Abstractions

Syntax

public class DiagnosticMessage
class Microsoft.AspNetCore.Diagnostics.DiagnosticMessage

Constructors

DiagnosticMessage(System.String, System.String, System.String, System.Int32, System.Int32, System.Int32, System.Int32)
public DiagnosticMessage(string message, string formattedMessage, string filePath, int startLine, int startColumn, int endLine, int endColumn)

Properties

Microsoft.AspNetCore.Diagnostics.DiagnosticMessage.EndColumn

Gets the zero-based column index for the end of the compilation error.

Return type:System.Int32
public int EndColumn { get; }
Microsoft.AspNetCore.Diagnostics.DiagnosticMessage.EndLine

Gets the one-based line index for the end of the compilation error.

Return type:System.Int32
public int EndLine { get; }
Microsoft.AspNetCore.Diagnostics.DiagnosticMessage.FormattedMessage

Gets the formatted error message.

Return type:System.String
public string FormattedMessage { get; }
Microsoft.AspNetCore.Diagnostics.DiagnosticMessage.Message

Gets the error message.

Return type:System.String
public string Message { get; }
Microsoft.AspNetCore.Diagnostics.DiagnosticMessage.SourceFilePath

Path of the file that produced the message.

Return type:System.String
public string SourceFilePath { get; }
Microsoft.AspNetCore.Diagnostics.DiagnosticMessage.StartColumn

Gets the zero-based column index for the start of the compilation error.

Return type:System.Int32
public int StartColumn { get; }
Microsoft.AspNetCore.Diagnostics.DiagnosticMessage.StartLine

Gets the one-based line index for the start of the compilation error.

Return type:System.Int32
public int StartLine { get; }