Share via


ItemContainerPattern_FindItemByProperty函式 (uiautomationcoreapi.h)

注意 此函式已被取代。 用戶端應用程式應該改用 Microsoft UI 自動化元件物件模型 (COM) 介面。
 
根據指定的屬性值,擷取包含節點內的節點。

語法

HRESULT ItemContainerPattern_FindItemByProperty(
  [in]  HUIAPATTERNOBJECT hobj,
  [in]  HUIANODE          hnodeStartAfter,
  [in]  PROPERTYID        propertyId,
  [in]  VARIANT           value,
  [out] HUIANODE          *pFound
);

參數

[in] hobj

類型: HUIAPATTERNOBJECT

控制項模式物件。

[in] hnodeStartAfter

類型: HUIANODE

要在其中開始搜尋的節點。

[in] propertyId

類型: PROPERTYID

屬性識別項。 如需屬性識別碼的清單,請參閱 屬性識別碼

[in] value

類型: VARIANT

propertyId屬性的值。

[out] pFound

類型: HUIANODE*

相符專案的節點。

傳回值

類型: HRESULT

如果成功或錯誤值,則傳回S_OK。

需求

   
最低支援的用戶端 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
標頭 uiautomationcoreapi.h
程式庫 Uiautomationcore.lib
Dll Uiautomationcore.dll