共用方式為


MvcRazorHost(IChunkTreeCache, ITagHelperDescriptorResolver) 建構函式

定義

使用指定的 chunkTreeCache ,初始化 的新實例 MvcRazorHost

public:
 MvcRazorHost(Microsoft::AspNetCore::Mvc::Razor::Directives::IChunkTreeCache ^ chunkTreeCache, Microsoft::AspNetCore::Razor::Compilation::TagHelpers::ITagHelperDescriptorResolver ^ resolver);
public MvcRazorHost (Microsoft.AspNetCore.Mvc.Razor.Directives.IChunkTreeCache chunkTreeCache, Microsoft.AspNetCore.Razor.Compilation.TagHelpers.ITagHelperDescriptorResolver resolver);
new Microsoft.AspNetCore.Mvc.Razor.MvcRazorHost : Microsoft.AspNetCore.Mvc.Razor.Directives.IChunkTreeCache * Microsoft.AspNetCore.Razor.Compilation.TagHelpers.ITagHelperDescriptorResolver -> Microsoft.AspNetCore.Mvc.Razor.MvcRazorHost
Public Sub New (chunkTreeCache As IChunkTreeCache, resolver As ITagHelperDescriptorResolver)

參數

chunkTreeCache
IChunkTreeCache

IChunkTreeCache 應用程式基底路徑為根目錄的 。

resolver
ITagHelperDescriptorResolver

ITagHelperDescriptorResolver 用來解析 razor 檢視上的標籤協助程式。

適用於