Automation.AddAutomationEventHandler 메서드

정의

UI 자동화 이벤트를 처리하는 메서드를 등록합니다.

public:
 static void AddAutomationEventHandler(System::Windows::Automation::AutomationEvent ^ eventId, System::Windows::Automation::AutomationElement ^ element, System::Windows::Automation::TreeScope scope, System::Windows::Automation::AutomationEventHandler ^ eventHandler);
public static void AddAutomationEventHandler (System.Windows.Automation.AutomationEvent eventId, System.Windows.Automation.AutomationElement element, System.Windows.Automation.TreeScope scope, System.Windows.Automation.AutomationEventHandler eventHandler);
static member AddAutomationEventHandler : System.Windows.Automation.AutomationEvent * System.Windows.Automation.AutomationElement * System.Windows.Automation.TreeScope * System.Windows.Automation.AutomationEventHandler -> unit
Public Shared Sub AddAutomationEventHandler (eventId As AutomationEvent, element As AutomationElement, scope As TreeScope, eventHandler As AutomationEventHandler)

매개 변수

eventId
AutomationEvent

메서드에서 처리할 이벤트의 식별자입니다.

element
AutomationElement

이벤트 처리기와 연결할 UI 자동화 요소입니다.

scope
TreeScope

처리할 이벤트의 범위입니다. 즉, 요소 자체에서만 발생할 수도 있고 상위 및 하위 요소에서 발생할 수도 있습니다.

eventHandler
AutomationEventHandler

지정된 이벤트가 발생할 때 호출할 메서드입니다.

설명

같은 GridPattern일부 클래스는 클래스와 관련된 이벤트를 식별하는 필드를 노출합니다. 이 메서드는 AddAutomationEventHandler 이러한 이벤트에 대한 처리기를 등록할 수 있는 메커니즘을 제공합니다.

eventHandler는 메서드의 인스턴스이거나 메서드에 대한 참조(AddressOfVisual Basic)일 수 있습니다.

적용 대상

추가 정보