MvcRazorHost.DecorateCodeGenerator Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an instance of the code generator and is provided an opportunity to decorate or replace it
public:
override Microsoft::AspNetCore::Razor::CodeGenerators::CodeGenerator ^ DecorateCodeGenerator(Microsoft::AspNetCore::Razor::CodeGenerators::CodeGenerator ^ incomingGenerator, Microsoft::AspNetCore::Razor::CodeGenerators::CodeGeneratorContext ^ context);
public override Microsoft.AspNetCore.Razor.CodeGenerators.CodeGenerator DecorateCodeGenerator (Microsoft.AspNetCore.Razor.CodeGenerators.CodeGenerator incomingGenerator, Microsoft.AspNetCore.Razor.CodeGenerators.CodeGeneratorContext context);
override this.DecorateCodeGenerator : Microsoft.AspNetCore.Razor.CodeGenerators.CodeGenerator * Microsoft.AspNetCore.Razor.CodeGenerators.CodeGeneratorContext -> Microsoft.AspNetCore.Razor.CodeGenerators.CodeGenerator
Public Overrides Function DecorateCodeGenerator (incomingGenerator As CodeGenerator, context As CodeGeneratorContext) As CodeGenerator
Parameters
- incomingGenerator
- CodeGenerator
- context
- CodeGeneratorContext
The CodeGeneratorContext.
Returns
Either the same code generator, after modifications, or a different code generator.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for