RazorTemplateEngine.GenerateCodeCore 方法

定义

此类型/成员支持.NET Framework基础结构,不应直接从代码中使用。生成代码核心。

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

参数

input
ITextDocument

要分析的输入文本。

className
String

所生成类的名称,用于覆盖在主机中指定的内容。

rootNamespace
String

所生成类将驻留的命名空间。

sourceFileName
String

要在行杂注中使用的文件名。

cancelToken
Nullable<CancellationToken>

用于取消分析器的令牌。

返回

所生成核心的结果。

适用于