Partilhar via


Método SilverlightTestPlugin.AddEventHandler

Esta API oferece suporte à infraestrutura .NET Framework e não se destina a ser usada diretamente do seu código.

Este membro substitui UITechnologyManager.AddEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify).

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

Sintaxe

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

Parâmetros

Valor de retorno

Tipo: System.Boolean
Retorna Boolean.

Implementações

IUITechnologyManager.AddEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify)

Segurança do .NET Framework

Consulte também

Referência

SilverlightTestPlugin Classe

Namespace Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight