Class TourFilterCollectionBuilder
Builds a collection of BackOfficeTourFilter items.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Tour
Assembly: Umbraco.Core.dll
Syntax
public class TourFilterCollectionBuilder : CollectionBuilderBase<TourFilterCollectionBuilder, TourFilterCollection, BackOfficeTourFilter>, ICollectionBuilder<TourFilterCollection, BackOfficeTourFilter>, ICollectionBuilder
Methods
View SourceAddFilter(BackOfficeTourFilter)
Adds a filter instance.
Declaration
public void AddFilter(BackOfficeTourFilter filter)
Parameters
Type | Name | Description |
---|---|---|
BackOfficeTourFilter | filter |
AddFilterByFile(String)
Creates and adds a filter instance filtering by tour filename.
Declaration
public void AddFilterByFile(string filename)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename |
AddFilterByPlugin(String)
Creates and adds a filter instance filtering by plugin name.
Declaration
public void AddFilterByPlugin(string pluginName)
Parameters
Type | Name | Description |
---|---|---|
System.String | pluginName |
CreateItems(IServiceProvider)
Creates the collection items.
Declaration
protected override IEnumerable<BackOfficeTourFilter> CreateItems(IServiceProvider factory)
Parameters
Type | Name | Description |
---|---|---|
IServiceProvider | factory |
Returns
Type | Description |
---|---|
IEnumerable<BackOfficeTourFilter> | The collection items. |
RemoveAllFilters()
Removes all filter instances.
Declaration
public void RemoveAllFilters()
RemoveFilter(Func<BackOfficeTourFilter, Boolean>)
Removes filters matching a condition.
Declaration
public void RemoveFilter(Func<BackOfficeTourFilter, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
Func<BackOfficeTourFilter, System.Boolean> | predicate |
RemoveFilter(BackOfficeTourFilter)
Removes a filter instance.
Declaration
public void RemoveFilter(BackOfficeTourFilter filter)
Parameters
Type | Name | Description |
---|---|---|
BackOfficeTourFilter | filter |