共用方式為


RazorEngineHost 建構函式

定義

多載

RazorEngineHost()
RazorEngineHost(RazorCodeLanguage)

建立使用指定之程式碼語言和 HTML 標籤語言的主機

RazorEngineHost(RazorCodeLanguage, Func<ParserBase>)

RazorEngineHost()

protected:
 RazorEngineHost();
protected RazorEngineHost ();
Protected Sub New ()

適用於

RazorEngineHost(RazorCodeLanguage)

建立使用指定之程式碼語言和 HTML 標籤語言的主機

public:
 RazorEngineHost(Microsoft::AspNetCore::Razor::RazorCodeLanguage ^ codeLanguage);
public RazorEngineHost (Microsoft.AspNetCore.Razor.RazorCodeLanguage codeLanguage);
new Microsoft.AspNetCore.Razor.RazorEngineHost : Microsoft.AspNetCore.Razor.RazorCodeLanguage -> Microsoft.AspNetCore.Razor.RazorEngineHost
Public Sub New (codeLanguage As RazorCodeLanguage)

參數

codeLanguage
RazorCodeLanguage

要使用的程式碼語言

適用於

RazorEngineHost(RazorCodeLanguage, Func<ParserBase>)

public:
 RazorEngineHost(Microsoft::AspNetCore::Razor::RazorCodeLanguage ^ codeLanguage, Func<Microsoft::AspNetCore::Razor::Parser::ParserBase ^> ^ markupParserFactory);
public RazorEngineHost (Microsoft.AspNetCore.Razor.RazorCodeLanguage codeLanguage, Func<Microsoft.AspNetCore.Razor.Parser.ParserBase> markupParserFactory);
new Microsoft.AspNetCore.Razor.RazorEngineHost : Microsoft.AspNetCore.Razor.RazorCodeLanguage * Func<Microsoft.AspNetCore.Razor.Parser.ParserBase> -> Microsoft.AspNetCore.Razor.RazorEngineHost
Public Sub New (codeLanguage As RazorCodeLanguage, markupParserFactory As Func(Of ParserBase))

參數

codeLanguage
RazorCodeLanguage
markupParserFactory
Func<ParserBase>

適用於