IUIAutomation::CreateCacheRequest Method

Creates a cache request.

Syntax

HRESULT CreateCacheRequest(      
    IUIAutomationCacheRequest **cacheRequest
);

Parameters

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

After obtaining the IUIAutomationCacheRequest interface, use its methods to specify properties and patterns to be cached when a UI Automation element is obtained.

See Also

IUIAutomationTreeWalker, IUIAutomationElement::FindAllBuildCache, IUIAutomationElement::FindFirstBuildCache, Caching UI Automation Properties and Control Patterns