Share via


IRazorCompilationService.Compile(RelativeFileInfo) Method

Definition

Compiles the razor file located at 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

Parameters

fileInfo
RelativeFileInfo

A RelativeFileInfo instance that represents the file to compile.

Returns

A CompilationResult that represents the results of parsing and compiling the file.

Applies to