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

Class CompositeFilter

A composite filter that aggregates several filters

Inheritance
System.Object
CompositeFilter
Implements
Namespace: EPiServer.Filters
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3
Syntax
public class CompositeFilter : Object, IContentFilter

Constructors

CompositeFilter(IContentFilter[])

Creates a new instance of CompositeFilter

Declaration
public CompositeFilter(params IContentFilter[] filters)
Parameters
Type Name Description
IContentFilter[] filters

CompositeFilter(IEnumerable<IContentFilter>)

Creates a new instance of CompositeFilter

Declaration
public CompositeFilter(IEnumerable<IContentFilter> filters)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IContentFilter> filters

Methods

Filter(IList<IContent>)

Filters the specified pages.

Declaration
public virtual void Filter(IList<IContent> contents)
Parameters
Type Name Description
System.Collections.Generic.IList<IContent> contents

The contents.

Filter(Object, ContentFilterEventArgs)

Eventhandler that applies the filter for a PageDataCollection.

Declaration
public virtual void Filter(object sender, ContentFilterEventArgs e)
Parameters
Type Name Description
System.Object sender

The class/instance that initiated the Filter event.

ContentFilterEventArgs e

The ContentFilterEventArgs arguments containing the event data.

ShouldFilter(IContent)

If the page should be filtered.

Declaration
public virtual bool ShouldFilter(IContent content)
Parameters
Type Name Description
IContent content

The content.

Returns
Type Description
System.Boolean

True if the filter will remove the page; otherwise false.

Implements

Extension Methods