IUIAutomation::P ollForPotentialSupportedProperties 方法 (uiautomationclient.h)
擷取 使用者介面自動化 專案上可能支援的屬性。
語法
HRESULT PollForPotentialSupportedProperties(
[in] IUIAutomationElement *pElement,
[out] SAFEARRAY **propertyIds,
[out] SAFEARRAY **propertyNames
);
參數
[in] pElement
類型: IUIAutomationElement*
要輪詢之 使用者介面自動化 項目的位址。
[out] propertyIds
類型: SAFEARRAY (int) **
接收屬性識別碼陣列的指標。 如需屬性識別碼的清單,請參閱 屬性標識碼。
[out] propertyNames
類型: SAFEARRAY (BSTR) **
接收屬性名稱陣列的指標。
傳回值
類型: HRESULT
如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。
備註
這個方法僅供需要掃描屬性和控制模式的 Microsoft 使用者介面自動化 工具使用。 它並非供 使用者介面自動化 用戶端使用。
在稍後要求元素時,不保證元素將支援任何特定的屬性。
規格需求
需求 | 值 |
---|---|
最低支援的用戶端 | Windows 7、Windows Vista SP2 和 Platform Update for Windows Vista、Windows XP 含 SP3 和適用於 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) |
另請參閱
概念
PollForPotentialSupportedPatterns
參考