RazorEngineHost.DecorateCodeGenerator 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取代码生成器的实例,并为其提供修饰或替换它的机会
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
返回
修改后,相同的代码生成器,或不同的代码生成器。