Class TemplateModel
Model describing a template.
Inheritance
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.Cms.AspNetCore.Templating.dll
Version: 12.0.3Syntax
public class TemplateModel : Object, IReadOnly<TemplateModel>, IReadOnly
Constructors
TemplateModel()
Declaration
public TemplateModel()
Properties
AvailableWithoutTag
Gets or sets a value indicating whether the renderer should be available even when no specific tag is requested.
Declaration
public bool AvailableWithoutTag { get; set; }
Property Value
Type | Description |
---|---|
System. |
|
Description
Gets or sets a text describing the template.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System. |
DisplayName
Gets or sets the display name.
Declaration
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
System. |
Inherit
Gets or sets a value indicating whether this template can be inherited by other types.
Declaration
public bool Inherit { get; set; }
Property Value
Type | Description |
---|---|
System. |
|
IsReadOnly
Gets a value indicating whether this instance is read only.
Declaration
public bool IsReadOnly { get; protected set; }
Property Value
Type | Description |
---|---|
System. |
|
ModelType
Gets or sets the type of the model that the template was registered for.
Declaration
public Type ModelType { get; set; }
Property Value
Type | Description |
---|---|
System. |
Name
Gets or sets the name of the template.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System. |
Path
Gets or sets the path to the view.
Declaration
public string Path { get; set; }
Property Value
Type | Description |
---|---|
System. |
Tags
Gets or sets the supperted tags of the render.
Declaration
public string[] Tags { get; set; }
Property Value
Type | Description |
---|---|
System. |
TemplateType
Gets or sets the type of the template class that will render the model type.
Declaration
public Type TemplateType { get; set; }
Property Value
Type | Description |
---|---|
System. |
TemplateTypeCategory
Gets or sets the category of the type of the template.
Declaration
public TemplateTypeCategories TemplateTypeCategory { get; set; }
Property Value
Type | Description |
---|---|
Template |
Methods
CreateWritableClone()
Creates the writable clone.
Declaration
public TemplateModel CreateWritableClone()
Returns
Type | Description |
---|---|
Template |
IsInherited()
Determines whether the template is inherited from another model type by setting the Inherit property when registering the template.
Declaration
public bool IsInherited()
Returns
Type | Description |
---|---|
System. |
|
MakeReadOnly()
Makes the instance read only.
Declaration
public void MakeReadOnly()
ThrowIfReadOnly()
Throws an System.
Declaration
protected void ThrowIfReadOnly()
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
Explicit Interface Implementations
IReadOnly.CreateWritableClone()
Creates the writable clone.
Declaration
object IReadOnly.CreateWritableClone()
Returns
Type | Description |
---|---|
System. |