IViewCompiler.CompileAsync(String) 方法

定义

在指定路径上编译视图。

public:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Mvc::Razor::Compilation::CompiledViewDescriptor ^> ^ CompileAsync(System::String ^ relativePath);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.Razor.Compilation.CompiledViewDescriptor> CompileAsync (string relativePath);
abstract member CompileAsync : string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.Razor.Compilation.CompiledViewDescriptor>
Public Function CompileAsync (relativePath As String) As Task(Of CompiledViewDescriptor)

参数

relativePath
String

视图的相对路径。

返回

一个 CompiledViewDescriptor

适用于