Class ContentFilterBase
Base class for filters implementing IContentFilter
Implements
Namespace: EPiServer.Filters
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3Syntax
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 |
|