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

Class TemplateModelsExtension

Extension methods for lists of TemplateModel.

Inheritance
System.Object
TemplateModelsExtension
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.Cms.AspNetCore.Templating.dll
Version: 12.0.3
Syntax
public static class TemplateModelsExtension : Object

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>