Share via


Méthode IUIAutomation5 ::RemoveNotificationEventHandler (uiautomationclient.h)

Supprime un gestionnaire d’événements de notification.

Syntaxe

HRESULT RemoveNotificationEventHandler(
  [in] IUIAutomationElement                  *element,
  [in] IUIAutomationNotificationEventHandler *handler
);

Paramètres

[in] element

Type : IUIAutomationElement*

Pointeur vers l’élément UI Automation duquel supprimer le gestionnaire.

[in] handler

Type : IUIAutomationNotificationEventHandler*

Pointeur vers l’interface qui a été passée à AddNotificationEventHandler.

Valeur retournée

Type : HRESULT

Si cette méthode réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.

Spécifications

Condition requise Valeur
Client minimal pris en charge Windows 10, version 1709 [applications de bureau uniquement]
Serveur minimal pris en charge Windows Server, version 1709 [applications de bureau uniquement]
Plateforme cible Windows
En-tête uiautomationclient.h (incluez UIAutomation.h)

Voir aussi

IUIAutomation5

RemoveAllEventHandlers