다음을 통해 공유


MvcRazorHost.GenerateCode(String, Stream) 메서드

정의

가 나타내는 inputStreamRazor 파일의 내용을 구문 분석하고 생성합니다.

public:
 virtual Microsoft::AspNetCore::Razor::CodeGenerators::GeneratorResults ^ GenerateCode(System::String ^ rootRelativePath, System::IO::Stream ^ inputStream);
public Microsoft.AspNetCore.Razor.CodeGenerators.GeneratorResults GenerateCode (string rootRelativePath, System.IO.Stream inputStream);
abstract member GenerateCode : string * System.IO.Stream -> Microsoft.AspNetCore.Razor.CodeGenerators.GeneratorResults
override this.GenerateCode : string * System.IO.Stream -> Microsoft.AspNetCore.Razor.CodeGenerators.GeneratorResults
Public Function GenerateCode (rootRelativePath As String, inputStream As Stream) As GeneratorResults

매개 변수

rootRelativePath
String

애플리케이션의 루트를 기준으로 하는 의 경로입니다. 선 pragmas를 생성하고 생성된 형식의 클래스 이름을 계산하는 데 사용됩니다.

inputStream
Stream

Stream Razor 콘텐츠를 나타내는 입니다.

반환

GeneratorResults 코드 생성 결과를 나타내는 instance.

구현

적용 대상