Share via


IUIAutomationElement::BuildUpdatedCache Method

Retrieves a new IUIAutomationElement interface with an updated cache.

Syntax

HRESULT BuildUpdatedCache(      
    IUIAutomationCacheRequest *cacheRequest,
    IUIAutomationElement **updatedElement
);

Parameters

  • cacheRequest
    [in] The address of an IUIAutomationCacheRequest interface that specifies the control patterns and properties to include in the cache.
  • updatedElement
    [out, retval] The address of a variable that receives a pointer to the new IUIAutomationElement interface.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The original UI Automation element is unchanged. The new IUIAutomationElement interface refers to the same element and has the same runtime identifier.

See Also

IUIAutomationElement, Caching UI Automation Properties and Control Patterns