Share via


MvcRazorHost.GenerateCode(String, Stream) Method

Definition

Parses and generates the contents of a Razor file represented by inputStream.

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

Parameters

rootRelativePath
String

The path of the relative to the root of the application. Used to generate line pragmas and calculate the class name of the generated type.

inputStream
Stream

A Stream that represents the Razor contents.

Returns

A GeneratorResults instance that represents the results of code generation.

Implements

Applies to