IUIAutomationCacheRequest::get_TreeScope method (uiautomationclient.h)

Specifies the scope of caching.

This property is read/write.

Syntax

HRESULT get_TreeScope(
  TreeScope *scope
);

Parameters

scope

Return value

None

Remarks

When an element is retrieved, caching can be performed for only the element itself (the default behavior), or for the element and its children or descendants. This property describes the scope of the request.

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

Caching UI Automation Properties and Control Patterns

Conceptual

IUIAutomationCacheRequest

Obtaining UI Automation Elements

Reference