Class EntryFilterSettings
The entry filter settings which can be use for EntryFilter.
Inheritance
System.Object
EntryFilterSettings
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0Syntax
public class EntryFilterSettings
Constructors
EntryFilterSettings()
Declaration
public EntryFilterSettings()
Methods
AddFilter<T>(Predicate<T>)
Adds a filter predicate to entry filter settings.
Declaration
public void AddFilter<T>(Predicate<T> filter)
Parameters
Type | Name | Description |
---|---|---|
System.Predicate<T> | filter | The predicate filter. |
Type Parameters
Name | Description |
---|---|
T | The type of object to execute the filter predicate for. |
Remarks
When filtering, an item will be evaluated against all predicate filters that have a compatible type. If any of the filter predicates return false, the item will be excluded.
ClearFilters()
Clears all filters of all types in the settings.
Declaration
public void ClearFilters()
GetCompositeFilter(Type)
Gets all filters for a specific type and combines into a composite filter.
Declaration
public Predicate<EntryContentBase> GetCompositeFilter(Type itemType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | itemType | The item type. |
Returns
Type | Description |
---|---|
System.Predicate<EntryContentBase> | A filter predicate that combines (chains) all the registered filter predicates that have a compatible type. |
HasFilter()
Checks if any filter has been added to the instance.
Declaration
public bool HasFilter()
Returns
Type | Description |
---|---|
System.Boolean |
|