Documentation > CMS Template API Library > FilterParams > Add(AssetPropertyNames,Comparison,DateTime)
Add
Adds a filter on a property to be compared as a .
public System.Void Add(AssetPropertyNames,Comparison,DateTime)
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.DateTime |
Code Example
C#
Sample:
FilterParams filter = new FilterParams(); filter.Add(AssetPropertyNames.LastModified, Comparison.GreaterThan, new DateTime(2010, 11, 15));