Interface IContentFilter
Interface for filters that can be applied to remove or sort contents.
Namespace: EPiServer.Filters
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public interface IContentFilter
Methods
Filter(IList<IContent>)
Filters the specified pages.
Declaration
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
void Filter(object sender, ContentFilterEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The class/instance that initiated the Filter event. |
ContentFilterEventArgs | e | The FilterEventArgs arguments containing the event data. |
ShouldFilter(IContent)
If the page should be filtered.
Declaration
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. |