Documentation > CMS Template API Library > FilterParams > Add(AssetPropertyNames,Comparison,List[String])
Add
Adds a filter which checks a list for the presence of a property.
public System.Void Add(AssetPropertyNames,Comparison,List[String])
Parameters
Name | Description | Type |
---|---|---|
name | The name of the asset property to compare. | CrownPeak.CMSAPI.AssetPropertyNames |
comparisonOperator | The comparison operator. Must be IsInSet or NotInSet. | CrownPeak.CMSAPI.Comparison |
set | The set. | List<String> |
Code Example
C#
Sample:
FilterParams filter = new FilterParams(); filter.Add(AssetPropertyNames.Label, Comparison.IsInSet, Util.MakeList("value1", "value2"));