IUIAutomationPropertyChangedEventHandler::HandlePropertyChangedEvent 方法 (uiautomationclient.h)

處理 Microsoft 使用者介面自動化 屬性變更事件。

語法

HRESULT HandlePropertyChangedEvent(
  [in] IUIAutomationElement *sender,
  [in] PROPERTYID           propertyId,
  [in] VARIANT              newValue
);

參數

[in] sender

類型: IUIAutomationElement*

引發事件之專案的指標。

[in] propertyId

類型: PROPERTYID

屬性的標識碼,其值已變更。 如需屬性識別碼的清單,請參閱 屬性標識碼

[in] newValue

類型: VARIANT

新的屬性值。

傳回值

類型: HRESULT

如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

備註

這個方法是由應用程式實作,以處理已使用 AddPropertyChangedEventHandler 訂閱的事件。

不支援從這個方法內調整事件處理程式。

規格需求

需求
最低支援的用戶端 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)