Getting FilterRule of ParameterFilterElement with API2020(c#)
Not applicable
06-05-2020
06:23 AM
Hi,
I am trying to get a List of FilterRules from my ParameterFilterElement. I tried it with the API2028 and 2019 and it was pretty simple. I just had to use GetRules(). But since this doesn't exist in 2020 I can't find an alternative.
My code(c#) until now was:
foreach (ParameterFilterElement pfe in allFilter)
{
IList<FilterRule> rules = pfe.GetRules();
foreach (FilterRule rule in rules)
{...}
}
Is there an alternative to this?
I am a beginner so please excuse me if I am missing something obvious.
Link copied