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

Class ContentFilterBase

Base class for filters implementing IContentFilter

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

Constructors

ContentFilterBase()

Initializes a new instance of the ContentFilterBase class.

Declaration
protected ContentFilterBase()

Properties

RequestTime

Gets or sets the request time used for filters dependent on the request time.

Declaration
public virtual Nullable<DateTime> RequestTime { get; set; }
Property Value
Type Description
System.Nullable<System.DateTime>

The request time.

Methods

Filter(IList<IContent>)

Filters passed in content list for current filter

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

Filter(Object, ContentFilterEventArgs)

Filters Contents for current filter

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

ShouldFilter(IContent)

Determines whether the content should be filtered.

Declaration
public abstract bool ShouldFilter(IContent content)
Parameters
Type Name Description
IContent content
Returns
Type Description
System.Boolean

true if the filter should remove the page; otherwise false.

Implements

Extension Methods