Megosztás a következőn keresztül:


ChunkHelper Class

Definition

Contains helper methods for dealing with Chunks

public ref class ChunkHelper abstract sealed
public static class ChunkHelper
type ChunkHelper = class
Public Class ChunkHelper
Inheritance
ChunkHelper

Fields

TModelToken

Token that is replaced by the model name in @inherits and @inject chunks as part of ChunkInheritanceUtility.

Methods

GetModelChunk(ChunkTree)

Returns the ModelChunk used to determine the model name for the page generated using the specified chunkTree

GetModelTypeName(ChunkTree, String)

Returns the type name of the Model specified via a ModelChunk in the chunkTree if specified or the default model type.

ReplaceTModel(String, String)

Returns a string with the <TModel> token replaced with the value specified in modelName.

Applies to