IUIAutomationElement::GetCachedParent Method

Retrieves from the cache the IUnknown interface of the specified control pattern of this UI Automation element.

Syntax

HRESULT GetCachedParent(      
    IUIAutomationElement **parent
);

Parameters

  • parent
    [out, retval] The address of a variable that receives a pointer to an IUIAutomationElement interface for the cached parent element.

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

IUIAutomationElement, IUIAutomationElement::GetCachedChildren, Obtaining UI Automation Elements, UI Automation Tree Overview