共用方式為


IUIAutomationSelectionPattern2::get_CachedCurrentSelectedItem 方法 (uiautomationclient.h)

取得代表目前選取專案的快取 IUIAutomationElement 物件。

這個屬性是唯讀的。

語法

HRESULT get_CachedCurrentSelectedItem(
  IUIAutomationElement **retVal
);

參數

retVal

傳回值

需求

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

另請參閱

IUIAutomationSelectionPattern2