Sdílet prostřednictvím


UITechnologyManager.AddEventHandler – metoda

Přidá obslužné rutiny události této technologie správce.

Obor názvů:  Microsoft.VisualStudio.TestTools.UITest.Extension
Sestavení:  Microsoft.VisualStudio.TestTools.UITest.Extension (v Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntaxe

'Deklarace
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

Parametry

Vrácená hodnota

Typ: System.Boolean
true Pokud je podporován typ události a úspěšně přidáno; jinak false.

Implementuje

IUITechnologyManager.AddEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify)

Zabezpečení rozhraní .NET Framework

Viz také

Odkaz

UITechnologyManager Třída

Microsoft.VisualStudio.TestTools.UITest.Extension – obor názvů

IUITechnologyElement

UITestEventType

IUITestEventNotify