Share via


ChunkHelper.GetModelChunk(ChunkTree) Method

Definition

Returns the ModelChunk used to determine the model name for the page generated using the specified 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

Parameters

chunkTree
ChunkTree

The ChunkTree to scan for ModelChunks in.

Returns

The last ModelChunk in the ChunkTree if found, null otherwise.

Applies to