Dela via


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 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.

Applies to