CompilationFailure 构造函数

定义

重载

CompilationFailure(String, String, String, IEnumerable<DiagnosticMessage>)

初始化 CompilationFailure 的新实例。

CompilationFailure(String, String, String, IEnumerable<DiagnosticMessage>, String)

初始化 CompilationFailure 的新实例。

CompilationFailure(String, String, String, IEnumerable<DiagnosticMessage>)

Source:
CompilationFailure.cs
Source:
CompilationFailure.cs
Source:
CompilationFailure.cs

初始化 CompilationFailure 的新实例。

public:
 CompilationFailure(System::String ^ sourceFilePath, System::String ^ sourceFileContent, System::String ^ compiledContent, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Diagnostics::DiagnosticMessage ^> ^ messages);
public CompilationFailure (string sourceFilePath, string sourceFileContent, string compiledContent, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Diagnostics.DiagnosticMessage> messages);
public CompilationFailure (string? sourceFilePath, string? sourceFileContent, string? compiledContent, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Diagnostics.DiagnosticMessage>? messages);
new Microsoft.AspNetCore.Diagnostics.CompilationFailure : string * string * string * seq<Microsoft.AspNetCore.Diagnostics.DiagnosticMessage> -> Microsoft.AspNetCore.Diagnostics.CompilationFailure
Public Sub New (sourceFilePath As String, sourceFileContent As String, compiledContent As String, messages As IEnumerable(Of DiagnosticMessage))

参数

sourceFilePath
String

生成编译失败的文件的路径。

sourceFileContent
String

正在编译的文件的内容。

compiledContent
String

对于模板化语言 ((如 Asp.Net Core Razor) ),生成的内容。

messages
IEnumerable<DiagnosticMessage>

一个或多个 DiagnosticMessage 实例。

适用于

CompilationFailure(String, String, String, IEnumerable<DiagnosticMessage>, String)

Source:
CompilationFailure.cs
Source:
CompilationFailure.cs
Source:
CompilationFailure.cs

初始化 CompilationFailure 的新实例。

public:
 CompilationFailure(System::String ^ sourceFilePath, System::String ^ sourceFileContent, System::String ^ compiledContent, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Diagnostics::DiagnosticMessage ^> ^ messages, System::String ^ failureSummary);
public CompilationFailure (string sourceFilePath, string sourceFileContent, string compiledContent, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Diagnostics.DiagnosticMessage> messages, string failureSummary);
public CompilationFailure (string? sourceFilePath, string? sourceFileContent, string? compiledContent, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Diagnostics.DiagnosticMessage?>? messages, string? failureSummary);
new Microsoft.AspNetCore.Diagnostics.CompilationFailure : string * string * string * seq<Microsoft.AspNetCore.Diagnostics.DiagnosticMessage> * string -> Microsoft.AspNetCore.Diagnostics.CompilationFailure
Public Sub New (sourceFilePath As String, sourceFileContent As String, compiledContent As String, messages As IEnumerable(Of DiagnosticMessage), failureSummary As String)

参数

sourceFilePath
String

生成编译失败的文件的路径。

sourceFileContent
String

正在编译的文件的内容。

compiledContent
String

对于模板化语言 ((如 Asp.Net Core Razor) ),生成的内容。

messages
IEnumerable<DiagnosticMessage>

一个或多个 DiagnosticMessage 实例。

failureSummary
String

用于修复故障的摘要消息或说明。

适用于