RazorEditorParser(RazorEngineHost, String) Constructor
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.
Constructs the editor parser. One instance should be used per active editor. This instance can be shared among reparses, but should never be shared between documents.
public:
RazorEditorParser(Microsoft::AspNetCore::Razor::RazorEngineHost ^ host, System::String ^ sourceFileName);
public RazorEditorParser (Microsoft.AspNetCore.Razor.RazorEngineHost host, string sourceFileName);
new Microsoft.AspNetCore.Razor.RazorEditorParser : Microsoft.AspNetCore.Razor.RazorEngineHost * string -> Microsoft.AspNetCore.Razor.RazorEditorParser
Public Sub New (host As RazorEngineHost, sourceFileName As String)
Parameters
- host
- RazorEngineHost
The RazorEngineHost which defines the environment in which the generated code will live. DesignTimeMode should be set if design-time behavior is desired.
- sourceFileName
- String
The physical path to use in line pragmas.