IUIAutomation::CreatePropertyCondition Method
Creates a condition that selects elements that have a property with the specified value.
Syntax
HRESULT CreatePropertyCondition( PROPERTYID propertyId, VARIANT value, IUIAutomationCondition **newCondition );
Parameters
- propertyId
[in] The property identifier. For a list of property IDs, see Property Identifiers.- value
[in] A VARIANT that contains the property value.- newCondition
[out, retval] The address of a variable that receives a pointer to an IUIAutomationCondition interface representing the condition.
Return Value
Returns S_OK if successful, or an error value otherwise.
See Also
IUIAutomation::CreatePropertyConditionEx, IUIAutomationElement::FindAll, IUIAutomationElement::FindAllBuildCache, IUIAutomationElement::FindFirst, IUIAutomationElement::FindFirstBuildCache, IUIAutomationCondition, Working with Safe Arrays