Método UITechnologyManager.AddEventHandler

Adiciona um manipulador de eventos para o gerente de tecnologia.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (em Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Sintaxe

'Declaração
Public MustOverride Function AddEventHandler ( _
    element As IUITechnologyElement, _
    eventType As UITestEventType, _
    eventSink As IUITestEventNotify _
) As Boolean
public abstract bool AddEventHandler(
    IUITechnologyElement element,
    UITestEventType eventType,
    IUITestEventNotify eventSink
)
public:
virtual bool AddEventHandler(
    IUITechnologyElement^ element, 
    UITestEventType eventType, 
    IUITestEventNotify^ eventSink
) abstract
abstract AddEventHandler : 
        element:IUITechnologyElement * 
        eventType:UITestEventType * 
        eventSink:IUITestEventNotify -> bool 
public abstract function AddEventHandler(
    element : IUITechnologyElement, 
    eventType : UITestEventType, 
    eventSink : IUITestEventNotify
) : boolean

Parâmetros

Valor de retorno

Tipo: System.Boolean
true Se o tipo de evento é suportado e adicionado com êxito; Caso contrário, false.

Implementações

IUITechnologyManager.AddEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify)

Segurança do .NET Framework

Consulte também

Referência

UITechnologyManager Classe

Namespace Microsoft.VisualStudio.TestTools.UITest.Extension

IUITechnologyElement

UITestEventType

IUITestEventNotify