다음을 통해 공유


ICompilationService.Compile(RelativeFileInfo, String) 메서드

정의

콘텐츠를 컴파일하고 컴파일 결과를 반환합니다.

public:
 Microsoft::AspNetCore::Mvc::Razor::Compilation::CompilationResult Compile(Microsoft::AspNetCore::Mvc::Razor::Compilation::RelativeFileInfo ^ fileInfo, System::String ^ compilationContent);
public Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationResult Compile (Microsoft.AspNetCore.Mvc.Razor.Compilation.RelativeFileInfo fileInfo, string compilationContent);
abstract member Compile : Microsoft.AspNetCore.Mvc.Razor.Compilation.RelativeFileInfo * string -> Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationResult
Public Function Compile (fileInfo As RelativeFileInfo, compilationContent As String) As CompilationResult

매개 변수

fileInfo
RelativeFileInfo

RelativeFileInfo 컴파일된 Razor 파일의 입니다.

compilationContent
String

컴파일할 생성된 C# 콘텐츠입니다.

반환

CompilationResult 컴파일 결과를 나타내는 입니다.

적용 대상