RazorTemplateEngine.GenerateCodeCore 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.
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Generates a code core.
protected internal virtual System.Web.Razor.GeneratorResults GenerateCodeCore (System.Web.Razor.Text.ITextDocument input, string className, string rootNamespace, string sourceFileName, System.Threading.CancellationToken? cancelToken);
abstract member GenerateCodeCore : System.Web.Razor.Text.ITextDocument * string * string * string * Nullable<System.Threading.CancellationToken> -> System.Web.Razor.GeneratorResults
override this.GenerateCodeCore : System.Web.Razor.Text.ITextDocument * string * string * string * Nullable<System.Threading.CancellationToken> -> System.Web.Razor.GeneratorResults
Protected Friend Overridable Function GenerateCodeCore (input As ITextDocument, className As String, rootNamespace As String, sourceFileName As String, cancelToken As Nullable(Of CancellationToken)) As GeneratorResults
Parameters
- input
- ITextDocument
The input text to parse.
- className
- String
The name of the generated class, overriding whatever is specified in the host.
- rootNamespace
- String
The namespace in which the generated class will reside.
- sourceFileName
- String
The file name to use in line pragmas.
- cancelToken
- Nullable<CancellationToken>
A token used to cancel the parser.
Returns
The results of the generated core.