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 应用程序基路径上取得 root 权限的 。

resolver
ITagHelperDescriptorResolver

ITagHelperDescriptorResolver用于解析 razor 视图上的标记帮助程序的 。

适用于