Compartilhar via


IRazorCompilationService.Compile(RelativeFileInfo) Método

Definição

Compila o arquivo razor localizado em fileInfo.

public:
 Microsoft::AspNetCore::Mvc::Razor::Compilation::CompilationResult Compile(Microsoft::AspNetCore::Mvc::Razor::Compilation::RelativeFileInfo ^ fileInfo);
public Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationResult Compile (Microsoft.AspNetCore.Mvc.Razor.Compilation.RelativeFileInfo fileInfo);
abstract member Compile : Microsoft.AspNetCore.Mvc.Razor.Compilation.RelativeFileInfo -> Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationResult
Public Function Compile (fileInfo As RelativeFileInfo) As CompilationResult

Parâmetros

fileInfo
RelativeFileInfo

Uma RelativeFileInfo instância que representa o arquivo a ser compilado.

Retornos

Um CompilationResult que representa os resultados da análise e compilação do arquivo.

Aplica-se a