ChunkInheritanceUtility.MergeInheritedChunkTrees 方法

定义

Chunk合并默认情况下继承的 和ChunkTree通过分析_ViewImports文件生成的实例到指定的 chunkTree中。

public:
 void MergeInheritedChunkTrees(Microsoft::AspNetCore::Razor::Chunks::ChunkTree ^ chunkTree, System::Collections::Generic::IReadOnlyList<Microsoft::AspNetCore::Razor::Chunks::ChunkTree ^> ^ inheritedChunkTrees, System::String ^ defaultModel);
public void MergeInheritedChunkTrees (Microsoft.AspNetCore.Razor.Chunks.ChunkTree chunkTree, System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Razor.Chunks.ChunkTree> inheritedChunkTrees, string defaultModel);
member this.MergeInheritedChunkTrees : Microsoft.AspNetCore.Razor.Chunks.ChunkTree * System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Razor.Chunks.ChunkTree> * string -> unit
Public Sub MergeInheritedChunkTrees (chunkTree As ChunkTree, inheritedChunkTrees As IReadOnlyList(Of ChunkTree), defaultModel As String)

参数

chunkTree
ChunkTree

ChunkTree 合并到的 。

inheritedChunkTrees
IReadOnlyList<ChunkTree>

IReadOnlyList<T> 继承自 _ViewImports 文件。

defaultModel
String

默认模型 Type 名称。

适用于