Windows Dev Center

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.

When to implement

UI Automation client applications do not implement IUIAutomationCacheRequest.

Members

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

Methods

The IUIAutomationCacheRequest interface has these methods.

MethodDescription
AddPattern

Adds a control pattern to the cache request.

AddProperty

Adds a property to the cache request.

Clone

Creates a copy of the cache request.

 

Properties

The IUIAutomationCacheRequest interface has these properties.

PropertyAccess typeDescription

AutomationElementMode

Read/write

Indicates whether returned elements contain full references to the underlying UI, or only cached information.

TreeFilter

Read/write

Specifies the view of the UI Automation element tree that is used when caching.

TreeScope

Read/write

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]

Header

UIAutomationClient.h (include UIAutomation.h)

IDL

UIAutomationClient.idl

DLL

UIAutomationCore.dll

IID

IID_IUIAutomationCacheRequest is defined as b32a92b5-bc25-4078-9c08-d7ee95c48e03

See also

UI Automation Element Interfaces for Clients

 

 

Community Additions

ADD
Show:
© 2015 Microsoft