ChunkHelper.GetModelChunk(ChunkTree) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回 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
否则为 。