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 Content
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. |
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. |
contents |
Filter(Object, ContentFilterEventArgs)
Filters Contents for current filter
Declaration
public void Filter(object sender, ContentFilterEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System. |
sender | |
Content |
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. |
|