共用方式為


ChunkInheritanceUtility 類別

定義

用來支援從適用 _ViewImports 頁面將指示詞繼承至頁面的公用程式類型。

public ref class ChunkInheritanceUtility
public class ChunkInheritanceUtility
type ChunkInheritanceUtility = class
Public Class ChunkInheritanceUtility
繼承
ChunkInheritanceUtility

建構函式

ChunkInheritanceUtility(MvcRazorHost, IChunkTreeCache, IReadOnlyList<Chunk>)

初始化 ChunkInheritanceUtility 的新執行個體。

方法

GetInheritedChunkTreeResults(String)

針對每個適用于 位於 pagePath 的頁面,取得已 ChunkTree 剖析 s 和檔案路徑 _ViewImports 的排序 IReadOnlyList<T> 。 清單會排序, ChunkTreeResultChunkTree_ViewImports 以便先顯示檔案系統中最 pagePath 接近 的 。

MergeInheritedChunkTrees(ChunkTree, IReadOnlyList<ChunkTree>, String)

Chunk根據預設 ChunkTree ,將檔案剖 _ViewImports 析成指定的 ,將繼承的實例合併至指定的 chunkTree

適用於