IViewCompiler.CompileAsync(String) Method
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.
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.