共用方式為


CompilationFailure 建構函式

定義

多載

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

初始化 CompilationFailure 的新執行個體。

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

初始化 CompilationFailure 的新執行個體。

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

來源:
CompilationFailure.cs
來源:
CompilationFailure.cs
來源:
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)

來源:
CompilationFailure.cs
來源:
CompilationFailure.cs
來源:
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

修正失敗的摘要訊息或指示。

適用於