AutomationPeer.ListenerExists(AutomationEvents) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that indicates whether Microsoft UI Automation reports that a client is listening for the specified event.
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
Parameters
- eventId
- AutomationEvents
One of the enumeration values.
Returns
Boolean
bool
true if Microsoft UI Automation reports a client is listening for the specified event; otherwise, false.