AutomationPeer.ListenerExists(AutomationEvents) 方法

定義

取得值,指出 Microsoft UI 自動化是否報告用戶端正在接聽指定的事件。

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

參數

eventId
AutomationEvents

其中一個列舉值。

傳回

Boolean

bool

如果 Microsoft UI 自動化報告用戶端正在接聽指定的事件,則為true;否則為false

適用於