IUITechnologyManager.AddEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify) Método

Definição

Adiciona um manipulador de eventos.

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

Parâmetros

eventType
UITestEventType

Um membro da UITestEventType enumeração que especifica o tipo de evento.

eventSink
IUITestEventNotify

Um IUITestEventNotify que registra os eventos.

Retornos

Boolean

true se o tipo de evento tiver suporte e for adicionado com êxito; caso contrário, false.

Atributos

Aplica-se a