IUIAutomationCacheRequest interface

Exposes properties and methods of a cache request. Client applications use this interface to specify the properties and control patterns to be cached when a Microsoft UI Automation element is obtained.

Methods

The IUIAutomationCacheRequest interface has these methods.

Method Description
IUIAutomationCacheRequest::AddPattern Adds a control pattern to the cache request.
IUIAutomationCacheRequest::AddProperty Adds a property to the cache request.
IUIAutomationCacheRequest::Clone Creates a copy of the cache request.
IUIAutomationCacheRequest::get_AutomationElementMode Indicates whether returned elements contain full references to the underlying UI, or only cached information.
IUIAutomationCacheRequest::get_TreeFilter Specifies the view of the UI Automation element tree that is used when caching.
IUIAutomationCacheRequest::get_TreeScope Specifies the scope of caching.
IUIAutomationCacheRequest::put_AutomationElementMode Indicates whether returned elements contain full references to the underlying UI, or only cached information.
IUIAutomationCacheRequest::put_TreeFilter Specifies the view of the UI Automation element tree that is used when caching.
IUIAutomationCacheRequest::put_TreeScope Specifies the scope of caching.

Remarks

Retrieving properties and control patterns through UI Automation requires cross-process calls that can slow down performance. By caching values of proprieties and control patterns in a batch operation, you can enhance the performance of your application.

Create a new cache request by calling CreateCacheRequest, and configure the request by calling methods of IUIAutomationCacheRequest.

Requirements

   
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista, Windows XP with SP3 and Platform Update for Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008, Windows Server 2003 with SP2 and Platform Update for Windows Server 2008 [desktop apps only]
Target Platform Windows
Header uiautomationclient.h (include UIAutomation.h)

See Also

UI Automation Element Interfaces for Clients