Class TemplateModelCollection
Collection of template models for model types.
Inheritance
System.Object
TemplateModelCollection
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Mvc
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class TemplateModelCollection
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.Type | modelType | The model type. |
TemplateModel | 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.Type | modelType | Type of the model. |
TemplateModel[] | viewTemplateModels | The view template models. |