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>

适用于