ChunkInheritanceUtility 构造函数

定义

初始化 ChunkInheritanceUtility 的新实例。

public:
 ChunkInheritanceUtility(Microsoft::AspNetCore::Mvc::Razor::MvcRazorHost ^ razorHost, Microsoft::AspNetCore::Mvc::Razor::Directives::IChunkTreeCache ^ chunkTreeCache, System::Collections::Generic::IReadOnlyList<Microsoft::AspNetCore::Razor::Chunks::Chunk ^> ^ defaultInheritedChunks);
public ChunkInheritanceUtility (Microsoft.AspNetCore.Mvc.Razor.MvcRazorHost razorHost, Microsoft.AspNetCore.Mvc.Razor.Directives.IChunkTreeCache chunkTreeCache, System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Razor.Chunks.Chunk> defaultInheritedChunks);
new Microsoft.AspNetCore.Mvc.Razor.Directives.ChunkInheritanceUtility : Microsoft.AspNetCore.Mvc.Razor.MvcRazorHost * Microsoft.AspNetCore.Mvc.Razor.Directives.IChunkTreeCache * System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Razor.Chunks.Chunk> -> Microsoft.AspNetCore.Mvc.Razor.Directives.ChunkInheritanceUtility
Public Sub New (razorHost As MvcRazorHost, chunkTreeCache As IChunkTreeCache, defaultInheritedChunks As IReadOnlyList(Of Chunk))

参数

razorHost
MvcRazorHost

MvcRazorHost用于分析页面的 _ViewImports

chunkTreeCache
IChunkTreeCache

IChunkTreeCache 缓存 ChunkTree 实例的 。

defaultInheritedChunks
IReadOnlyList<Chunk>

默认情况下继承的 Chunk序列。

适用于