ChunkHelper.GetModelTypeName(ChunkTree, String) Method

Definition

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.

defaultModelName
String

The Type name of the default model.

Returns

String

The model type name for the generated page.

Applies to