AutomationPeer.ListenerExists(AutomationEvents) 메서드

정의

UI 자동화 지정된 이벤트를 수신 대기하는지 여부를 나타내는 값을 가져옵니다.

public:
 static bool ListenerExists(System::Windows::Automation::Peers::AutomationEvents eventId);
public static bool ListenerExists (System.Windows.Automation.Peers.AutomationEvents eventId);
static member ListenerExists : System.Windows.Automation.Peers.AutomationEvents -> bool
Public Shared Function ListenerExists (eventId As AutomationEvents) As Boolean

매개 변수

eventId
AutomationEvents

열거형 값 중 하나입니다.

반환

Boolean

UI 자동화 이벤트를 수신 대기하는지 여부를 나타내는 A boolean 입니다.

설명

일반적으로 이벤트를 발생시키는 메서드를 AutomationPeer 만들기 전에 이 메서드를 호출합니다. UI 자동화 이벤트를 수신 대기하지 않는 경우 발생시킬 피어를 만드는 것은 의미가 없으므로 이 메서드는 성능 측정값입니다.

참고

이 메서드는 정적이며 대리자가 특정 요소의 이벤트가 아니라 UI 자동화 지정된 이벤트를 수신 대기하는 경우에만 응답합니다. UI 자동화 브로드캐스트 수신기를 만들 수 있으므로 요소별 정보는 관련이 없습니다.

적용 대상

추가 정보