IUIAutomationCacheRequest::get_TreeScope 方法 (uiautomationclient.h)

指定快取的範圍。

這是可讀寫的屬性。

語法

HRESULT get_TreeScope(
  TreeScope *scope
);

參數

scope

傳回值

備註

擷取專案時,只能針對專案本身執行快取 (默認行為) ,或針對專案及其子系或子系執行快取。 此屬性描述要求的範圍。

規格需求

需求
最低支援的用戶端 Windows 7、Windows Vista sp2 和 Platform Update for Windows Vista、Windows XP with SP3 和 Platform Update for Windows Vista [僅限桌面應用程式]
最低支援的伺服器 Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008、Windows Server 2003 SP2 和 Platform Update for Windows Server 2008 [僅限桌面應用程式]
目標平台 Windows
標頭 uiautomationclient.h (包含 UIAutomation.h)

另請參閱

快取 使用者介面自動化 屬性和控制模式

概念

IUIAutomationCacheRequest

取得 UI 自動化項目

參考