DiagnosticMessage(String, String, String, Int32, Int32, Int32, Int32) 构造函数

定义

初始化 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)

参数

message
String

错误消息。

formattedMessage
String

带有格式的错误消息。

filePath
String

生成消息的文件的路径。

startLine
Int32

编译错误开始的从 1 开始的行索引。

startColumn
Int32

编译错误开始时的从零开始的列索引。

endLine
Int32

编译错误末尾的从 1 开始的行索引。

endColumn
Int32

编译错误结束时的从零开始的列索引。

适用于