Condividi tramite


IViewCompiler.CompileAsync(String) Metodo

Definizione

Compilare una vista nel percorso specificato.

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)

Parametri

relativePath
String

Percorso relativo della visualizzazione.

Restituisce

Oggetto CompiledViewDescriptor.

Si applica a