IUIAutomationCacheRequest interface (uiautomationclient.h)

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.

Inheritance

The IUIAutomationCacheRequest interface inherits from the IUnknown interface. IUIAutomationCacheRequest also has these types of members:

Methods

The IUIAutomationCacheRequest interface has these methods.

 
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. (Get)
IUIAutomationCacheRequest::get_TreeFilter

Specifies the view of the UI Automation element tree that is used when caching. (Get)
IUIAutomationCacheRequest::get_TreeScope

Specifies the scope of caching. (Get)
IUIAutomationCacheRequest::put_AutomationElementMode

Indicates whether returned elements contain full references to the underlying UI, or only cached information. (Put)
IUIAutomationCacheRequest::put_TreeFilter

Specifies the view of the UI Automation element tree that is used when caching. (Put)
IUIAutomationCacheRequest::put_TreeScope

Specifies the scope of caching. (Put)

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

Requirement Value
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