CompilationResult 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
CompilationResult(IEnumerable<CompilationFailure>) |
Initializes a new instance of CompilationResult for a failed compilation. |
CompilationResult(Type) |
Initializes a new instance of CompilationResult for a successful compilation. |
CompilationResult(IEnumerable<CompilationFailure>)
Initializes a new instance of CompilationResult for a failed compilation.
public:
CompilationResult(System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Diagnostics::CompilationFailure ^> ^ compilationFailures);
public CompilationResult (System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Diagnostics.CompilationFailure> compilationFailures);
new Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationResult : seq<Microsoft.AspNetCore.Diagnostics.CompilationFailure> -> Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationResult
Public Sub New (compilationFailures As IEnumerable(Of CompilationFailure))
Parameters
- compilationFailures
- IEnumerable<CompilationFailure>
CompilationFailures produced from parsing or compiling the Razor file.
Applies to
CompilationResult(Type)
Initializes a new instance of CompilationResult for a successful compilation.
public:
CompilationResult(Type ^ type);
public CompilationResult (Type type);
new Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationResult : Type -> Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationResult
Public Sub New (type As Type)
Parameters
- type
- Type
The compiled type.