IUITechnologyManager.AddEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify) Methode

Definition

Fügt einen Ereignishandler hinzu.

public:
 bool AddEventHandler(Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ element, Microsoft::VisualStudio::TestTools::UITest::Extension::UITestEventType eventType, Microsoft::VisualStudio::TestTools::UITest::Extension::IUITestEventNotify ^ eventSink);
[System.Runtime.InteropServices.DispId(12)]
public bool AddEventHandler (Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement element, Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventType eventType, Microsoft.VisualStudio.TestTools.UITest.Extension.IUITestEventNotify eventSink);
[<System.Runtime.InteropServices.DispId(12)>]
abstract member AddEventHandler : Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement * Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventType * Microsoft.VisualStudio.TestTools.UITest.Extension.IUITestEventNotify -> bool
Public Function AddEventHandler (element As IUITechnologyElement, eventType As UITestEventType, eventSink As IUITestEventNotify) As Boolean

Parameter

eventType
UITestEventType

Ein Member der- UITestEventType Enumeration, der den Ereignistyp angibt.

eventSink
IUITestEventNotify

Ein IUITestEventNotify , das die Ereignisse protokolliert.

Gibt zurück

Boolean

true, wenn der Ereignistyp unterstützt wird und erfolgreich hinzugefügt wurde. andernfalls false.

Attribute

Gilt für