AutomationPeer.ListenerExists(AutomationEvents) AutomationPeer.ListenerExists(AutomationEvents) AutomationPeer.ListenerExists(AutomationEvents) AutomationPeer.ListenerExists(AutomationEvents) Method

Definition

Gets a value that indicates whether Microsoft UI Automation reports that a client is listening for the specified event.

public : static Platform::Boolean ListenerExists(AutomationEvents eventId)
static bool ListenerExists(AutomationEvents eventId) const;
public static bool ListenerExists(AutomationEvents eventId)
Public Shared Function ListenerExists(eventId As AutomationEvents) As bool
Parameters
eventId
AutomationEvents AutomationEvents

One of the enumeration values.

Returns
bool bool

true if Microsoft UI Automation reports a client is listening for the specified event; otherwise, false.