RazorEngineHost 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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>