Documentation > CMS Template API Library > FilterParams > Add(AssetPropertyNames,Comparison,String)
Add
Adds a filter on a property to be compared as a .
public System.Void Add(AssetPropertyNames,Comparison,String)
Parameters
Name | Description | Type |
---|---|---|
name | The name of the asset property to compare. | CrownPeak.CMSAPI.AssetPropertyNames |
comparisonOperator | The comparison operator. | CrownPeak.CMSAPI.Comparison |
value | The value. | System.String |
Code Example
C#
Sample:
FilterParams filter = new FilterParams(); filter.Add(AssetPropertyNames.Label, Comparison.Equals, "foo");