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>