CompilationFailure Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CompilationFailure(String, String, String, IEnumerable<DiagnosticMessage>) |
Initializes a new instance of CompilationFailure. |
CompilationFailure(String, String, String, IEnumerable<DiagnosticMessage>, String) |
Initializes a new instance of CompilationFailure. |
CompilationFailure(String, String, String, IEnumerable<DiagnosticMessage>)
- Source:
- CompilationFailure.cs
- Source:
- CompilationFailure.cs
- Source:
- CompilationFailure.cs
Initializes a new instance of 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))
Parameters
- sourceFilePath
- String
Path for the file that produced the compilation failure.
- sourceFileContent
- String
Contents of the file being compiled.
- compiledContent
- String
For templated languages (such as Asp.Net Core Razor), the generated content.
- messages
- IEnumerable<DiagnosticMessage>
One or or more DiagnosticMessage instances.
Applies to
CompilationFailure(String, String, String, IEnumerable<DiagnosticMessage>, String)
- Source:
- CompilationFailure.cs
- Source:
- CompilationFailure.cs
- Source:
- CompilationFailure.cs
Initializes a new instance of 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)
Parameters
- sourceFilePath
- String
Path for the file that produced the compilation failure.
- sourceFileContent
- String
Contents of the file being compiled.
- compiledContent
- String
For templated languages (such as Asp.Net Core Razor), the generated content.
- messages
- IEnumerable<DiagnosticMessage>
One or or more DiagnosticMessage instances.
- failureSummary
- String
Summary message or instructions to fix the failure.