RazorEngineHost.DecorateRazorParser(RazorParser, String) 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.
Provides an opportunity for derived types to modify the instance of RazorParser used by the RazorTemplateEngine to parse the Razor tree.
public:
virtual Microsoft::AspNetCore::Razor::Parser::RazorParser ^ DecorateRazorParser(Microsoft::AspNetCore::Razor::Parser::RazorParser ^ incomingRazorParser, System::String ^ sourceFileName);
public virtual Microsoft.AspNetCore.Razor.Parser.RazorParser DecorateRazorParser (Microsoft.AspNetCore.Razor.Parser.RazorParser incomingRazorParser, string sourceFileName);
abstract member DecorateRazorParser : Microsoft.AspNetCore.Razor.Parser.RazorParser * string -> Microsoft.AspNetCore.Razor.Parser.RazorParser
override this.DecorateRazorParser : Microsoft.AspNetCore.Razor.Parser.RazorParser * string -> Microsoft.AspNetCore.Razor.Parser.RazorParser
Public Overridable Function DecorateRazorParser (incomingRazorParser As RazorParser, sourceFileName As String) As RazorParser
Parameters
- incomingRazorParser
- RazorParser
The RazorParser
- sourceFileName
- String
The file name of the Razor file being parsed.
Returns
Either the same code parser, after modifications, or a different code parser.