Class TemplateConventions

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

Inheritance
System.Object
TemplateConventions
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.Extensions.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public static class TemplateConventions

Methods

GetRenderTemplateModelType(Type)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the model type of the specified render template. This method returns null if IRenderTemplate<TModel> is not implemented. If more than one IRenderTemplate<TModel> is implemented this method will throw an exception.

Declaration
public static Type GetRenderTemplateModelType(Type templateType)
Parameters
Type Name Description
System.Type templateType
Returns
Type Description
System.Type
Exceptions
Type Condition
System.Reflection.AmbiguousMatchException

Thrown if the type has multiple implementations of IRenderTemplate<TModel>.

IsRenderTemplate(Type)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Determines whether the type is a render template implementation, i.e. a non abstract or generic type definition that implements the IRenderTemplate interface.

Declaration
public static bool IsRenderTemplate(Type type)
Parameters
Type Name Description
System.Type type
Returns
Type Description
System.Boolean