Condividi tramite


Metodo UITechnologyManagerProxy.AddEventHandler

Aggiunge un gestore eventi.

Spazio dei nomi:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Sintassi

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

Parametri

Valore restituito

Tipo: System.Boolean
Le True se il eventType è supportato e aggiungere riescono in caso contrario, false.

Implementa

IUITechnologyManager.AddEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify)

Sicurezza di .NET Framework

Vedere anche

Riferimenti

UITechnologyManagerProxy Classe

Spazio dei nomi Microsoft.VisualStudio.TestTools.UITesting