I would like to fetch instances of my Item that match a particular property value. I would like to add a property filter to my ECQuery
. Method query->SetPropertyValuePreFilter()
looks like it should do the job.
However, it takes a IECPropertyValueFilter
argument, and I don't see how to populate that struct. Do I use IECPropertyValueFilter.Accept (ecPropertyValue)
?
The only way to make an ECPropertyValuePtr
is ECPropertyValue::GetPropertyValue (IECInstanceCR instance, WCharCP propertyAccessor)
. But that seems somewhat circular, because it's instances that I'm wanting to find using my ECQuery
.