Share via


DiagnosticMessage(String, String, String, Int32, Int32, Int32, Int32) Constructor

Definition

Initializes a new instance of DiagnosticMessage.

public:
 DiagnosticMessage(System::String ^ message, System::String ^ formattedMessage, System::String ^ filePath, int startLine, int startColumn, int endLine, int endColumn);
public DiagnosticMessage (string message, string formattedMessage, string filePath, int startLine, int startColumn, int endLine, int endColumn);
public DiagnosticMessage (string? message, string? formattedMessage, string? filePath, int startLine, int startColumn, int endLine, int endColumn);
new Microsoft.AspNetCore.Diagnostics.DiagnosticMessage : string * string * string * int * int * int * int -> Microsoft.AspNetCore.Diagnostics.DiagnosticMessage
Public Sub New (message As String, formattedMessage As String, filePath As String, startLine As Integer, startColumn As Integer, endLine As Integer, endColumn As Integer)

Parameters

message
String

The error message.

formattedMessage
String

The formatted error message.

filePath
String

The path of the file that produced the message.

startLine
Int32

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

startColumn
Int32

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

endLine
Int32

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

endColumn
Int32

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

Applies to