Dela via


RazorEditorParser(RazorEngineHost, String) Constructor

Definition

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.

Applies to