Documentation > CMS Template API Library > FilterParams > Add(AssetPropertyNames,Comparison,Int32)

Add

Adds a filter on a property to be compared as an .

public System.Void Add(AssetPropertyNames,Comparison,Int32)

Parameters

NameDescriptionType
name The name of the asset property to compare. CrownPeak.CMSAPI.AssetPropertyNames
comparisonOperator The comparison operator. CrownPeak.CMSAPI.Comparison
value The value. System.Int32

Code Example

C#

Sample:

            
            FilterParams filter = new FilterParams();
            filter.Add(AssetPropertyNames.Id,  Comparison.Equals, 42);
            
            

Connect with Crownpeak