CompilationResult 构造函数

定义

重载

CompilationResult(IEnumerable<CompilationFailure>)

为失败的编译初始化 的新 CompilationResult 实例。

CompilationResult(Type)

初始化 的新实例 CompilationResult 以成功编译。

CompilationResult(IEnumerable<CompilationFailure>)

为失败的编译初始化 的新 CompilationResult 实例。

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))

参数

compilationFailures
IEnumerable<CompilationFailure>

CompilationFailure通过分析或编译 Razor 文件生成的 。

适用于

CompilationResult(Type)

初始化 的新实例 CompilationResult 以成功编译。

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)

参数

type
Type

已编译的类型。

适用于