RazorTemplateEngine.GenerateCodeCore 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
此类型/成员支持.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>
用于取消分析器的令牌。
返回
所生成核心的结果。