Class FilterCollection
A filter collection is a combination of multiple filter with a merging operator (OR / AND). Specific consideration A blank filter collection (no children) will always pass if operator is AND and will always fail if operator is OR
[FilterMetaData(null, LongDescription = "FilterCollection is a combination of multiple filters with a merging operator (OR / AND).")]
public class FilterCollection : Filter
- Inheritance
-
FilterCollection
- Inherited Members
- Extension Methods
Constructors
FilterCollection()
[JsonConstructor]
public FilterCollection()
FilterCollection(params Filter[])
Create a combination of multiple filters. The default operation is OR.
public FilterCollection(params Filter[] filters)
Parameters
filters
Filter[]
Properties
AutoGeneratedName
public override string AutoGeneratedName { get; }
Property Value
Children
public List<Filter> Children { get; set; }
Property Value
ExplicitShortName
public string? ExplicitShortName { get; set; }
Property Value
FilterScope
public override FilterScope FilterScope { get; }
Property Value
GenericName
public override string GenericName { get; }
Property Value
Identifier
public override Guid Identifier { get; }
Property Value
Operation
public SelectorCollectionOperation Operation { get; set; }
Property Value
ShortName
public override string ShortName { get; }
Property Value
Methods
GetExamples()
public override IEnumerable<FilterExample> GetExamples()
Returns
InternalApply(ExchangeContext?, IAuthority, IExchange?, IFilteringContext?)
protected override bool InternalApply(ExchangeContext? exchangeContext, IAuthority authority, IExchange? exchange, IFilteringContext? filteringContext)
Parameters
exchangeContext
ExchangeContextauthority
IAuthorityexchange
IExchangefilteringContext
IFilteringContext