CompilationFailure 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CompilationFailure(String, String, String, IEnumerable<DiagnosticMessage>)
初始化 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 的新執行個體。
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
修正失敗的摘要訊息或指示。