November Happy Hour will be moved to Thursday December 5th.

Class TemplateModelsExtension

Extension methods for lists of TemplateModel.

Inheritance
System.Object
TemplateModelsExtension
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.DataAbstraction
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public static class TemplateModelsExtension

Methods

OfCategory(IEnumerable<TemplateModel>, TemplateTypeCategories)

Filters the templates according to the specified categories.

Declaration
public static IEnumerable<TemplateModel> OfCategory(this IEnumerable<TemplateModel> templates, TemplateTypeCategories categories)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<TemplateModel> templates

The templates.

TemplateTypeCategories categories

The categories.

Returns
Type Description
System.Collections.Generic.IEnumerable<TemplateModel>