Share via


IViewCompiler.CompileAsync(String) Method

Definition

Compile a view at the specified path.

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)

Parameters

relativePath
String

The relative path to the view.

Returns

A CompiledViewDescriptor.

Applies to