Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

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>