ChunkHelper.GetModelTypeName(ChunkTree, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the type name of the Model specified via a ModelChunk in the
chunkTree if specified or the default model type.
public:
static System::String ^ GetModelTypeName(Microsoft::AspNetCore::Razor::Chunks::ChunkTree ^ chunkTree, System::String ^ defaultModelName);
public static string GetModelTypeName (Microsoft.AspNetCore.Razor.Chunks.ChunkTree chunkTree, string defaultModelName);
static member GetModelTypeName : Microsoft.AspNetCore.Razor.Chunks.ChunkTree * string -> string
Public Shared Function GetModelTypeName (chunkTree As ChunkTree, defaultModelName As String) As String
Parameters
- chunkTree
- ChunkTree
The ChunkTree to scan for ModelChunks in.
Returns
The model type name for the generated page.