Sdílet prostřednictvím


RazorEngineHost.DecorateCodeGenerator Metoda

Definice

Získá instanci generátoru kódu a je k dispozici příležitost ji ozdobit nebo nahradit.

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

Parametry

incomingBuilder
CodeGenerator

Hodnota CodeGenerator

Návraty

Buď stejný generátor kódu, po úpravách, nebo jiný generátor kódu.

Platí pro