ChunkHelper.GetModelChunk(ChunkTree) 方法

定义

返回 ModelChunk 用于确定使用指定的 生成的页面的模型名称 chunkTree

public:
 static Microsoft::AspNetCore::Mvc::Razor::ModelChunk ^ GetModelChunk(Microsoft::AspNetCore::Razor::Chunks::ChunkTree ^ chunkTree);
public static Microsoft.AspNetCore.Mvc.Razor.ModelChunk GetModelChunk(Microsoft.AspNetCore.Razor.Chunks.ChunkTree chunkTree);
static member GetModelChunk : Microsoft.AspNetCore.Razor.Chunks.ChunkTree -> Microsoft.AspNetCore.Mvc.Razor.ModelChunk
Public Shared Function GetModelChunk (chunkTree As ChunkTree) As ModelChunk

参数

chunkTree
ChunkTree

ChunkTree 扫描 ModelChunk的 。

返回

如果找到 ,则ChunkTree为 中的最后ModelChunk一个,null否则为 。

适用于