共用方式為


IUIAutomationSelectionPattern2::get_CachedLastSelectedItem 方法 (uiautomationclient.h)

取得快取的 IUIAutomationElement 物件,代表所選專案群組中的最後一個專案。

這個屬性是唯讀的。

語法

HRESULT get_CachedLastSelectedItem(
  IUIAutomationElement **retVal
);

參數

retVal

傳回值

規格需求

需求
最低支援的用戶端 Windows 10 版本 1709 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2016 [僅限傳統型應用程式]
目標平台 Windows
標頭 uiautomationclient.h (包含 UIAutomation.h)

另請參閱

IUIAutomationSelectionPattern2