Share via


IUIAutomation::CreateAndConditionFromArray Method

Creates a condition that selects elements based on multiple conditions, all of which must be true.

Syntax

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

Parameters

  • conditions
    [in] A SAFEARRAY that contains the conditions to be combined.
  • 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::CreateAndCondition, IUIAutomation::CreateAndConditionFromNativeArray, IUIAutomationCondition, IUIAutomationElement::FindAll, IUIAutomationElement::FindAllBuildCache, IUIAutomationElement::FindFirst, IUIAutomationElement::FindFirstBuildCache, Working with Safe Arrays