IUIAutomation::CreateOrConditionFromArray Method

Creates a combination of two or more conditions where a match exists if any of the conditions is true.

Syntax

HRESULT CreateOrConditionFromArray(      
    SAFEARRAY conditions[IUIAutomationCondition],
    IUIAutomationCondition **newCondition
);

Parameters

  • conditions
    [in] A SAFEARRAY that contains the conditions.
  • newCondition
    [out, retval] The address of a variable that receives a pointer to an IUIAutomationCondition interface representing the combined condition.

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

IUIAutomation::CreateOrCondition, IUIAutomation::CreateOrConditionFromNativeArray, IUIAutomationCondition, IUIAutomationElement::FindAll, IUIAutomationElement::FindAllBuildCache, IUIAutomationElement::FindFirst, IUIAutomationElement::FindFirstBuildCache, Working with Safe Arrays