RazorEngineHost.DecorateCodeGenerator 方法

定义

获取代码生成器的实例,并为其提供修饰或替换它的机会

public:
 virtual Microsoft::AspNetCore::Razor::CodeGenerators::CodeGenerator ^ DecorateCodeGenerator(Microsoft::AspNetCore::Razor::CodeGenerators::CodeGenerator ^ incomingBuilder, Microsoft::AspNetCore::Razor::CodeGenerators::CodeGeneratorContext ^ context);
public virtual Microsoft.AspNetCore.Razor.CodeGenerators.CodeGenerator DecorateCodeGenerator (Microsoft.AspNetCore.Razor.CodeGenerators.CodeGenerator incomingBuilder, Microsoft.AspNetCore.Razor.CodeGenerators.CodeGeneratorContext context);
abstract member DecorateCodeGenerator : Microsoft.AspNetCore.Razor.CodeGenerators.CodeGenerator * Microsoft.AspNetCore.Razor.CodeGenerators.CodeGeneratorContext -> Microsoft.AspNetCore.Razor.CodeGenerators.CodeGenerator
override this.DecorateCodeGenerator : Microsoft.AspNetCore.Razor.CodeGenerators.CodeGenerator * Microsoft.AspNetCore.Razor.CodeGenerators.CodeGeneratorContext -> Microsoft.AspNetCore.Razor.CodeGenerators.CodeGenerator
Public Overridable Function DecorateCodeGenerator (incomingBuilder As CodeGenerator, context As CodeGeneratorContext) As CodeGenerator

参数

incomingBuilder
CodeGenerator

CodeGenerator

返回

修改后,相同的代码生成器,或不同的代码生成器。

适用于