Share via


AutomationPeer.ListenerExists(AutomationEvents) Méthode

Définition

Obtient une valeur qui indique si Microsoft UI Automation signale qu’un client écoute l’événement spécifié.

public:
 static bool ListenerExists(AutomationEvents eventId);
 static bool ListenerExists(AutomationEvents const& eventId);
public static bool ListenerExists(AutomationEvents eventId);
function listenerExists(eventId)
Public Shared Function ListenerExists (eventId As AutomationEvents) As Boolean

Paramètres

eventId
AutomationEvents

Une des valeurs de l'énumération.

Retours

Boolean

bool

true si Microsoft UI Automation signale qu’un client écoute l’événement spécifié ; sinon, false.

S’applique à