Class TemplateModelCollection
Collection of template models for model types.
Inheritance
System.Object
TemplateModelCollection
Namespace: EPiServer.Web.Mvc
Assembly: EPiServer.Cms.AspNetCore.Mvc.dll
Version: 12.0.3Syntax
public class TemplateModelCollection : Object
Constructors
TemplateModelCollection()
Declaration
public TemplateModelCollection()
Methods
Add(Type, TemplateModel)
Addsa template model to a model type
Declaration
public void Add(Type modelType, TemplateModel viewTemplateModel)
Parameters
Type | Name | Description |
---|---|---|
System. |
modelType | The model type. |
Template |
viewTemplateModel | The view template model. |
Add(Type, TemplateModel[])
Adds template models to a model type.
Declaration
public void Add(Type modelType, params TemplateModel[] viewTemplateModels)
Parameters
Type | Name | Description |
---|---|---|
System. |
modelType | Type of the model. |
Template |
viewTemplateModels | The view template models. |