MvcRazorHost.GenerateCode(String, Stream) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
Returns
A GeneratorResults instance that represents the results of code generation.