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

Add

Adds a filter on a property for comparing asset type.

public System.Void Add(Comparison,AssetType)

Parameters

NameDescriptionType
comparisonOperator The operator to compare with. Such as GreaterThan or LessThan. CrownPeak.CMSAPI.Comparison
type The type of the asset to compare. CrownPeak.CMSAPI.AssetType

Code Example

C#

Sample:

            
            FilterParams filter = new FilterParams();
            filter.Add(Comparison.Equals, AssetType.File);
            
            

Connect with Crownpeak