Metoda UITechnologyManager.AddEventHandler —
Dodaje program obsługi zdarzeń Menedżera tej technologii.
Przestrzeń nazw: Microsoft.VisualStudio.TestTools.UITest.Extension
Zestaw: Microsoft.VisualStudio.TestTools.UITest.Extension (w Microsoft.VisualStudio.TestTools.UITest.Extension.dll)
Składnia
'Deklaracja
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
element
Typ: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElementIUITechnologyElement i jego potomkami, dla której należy podnieść tego zdarzenia.
eventType
Typ: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventTypeCzłonek UITestEventType wyliczenia, który określa typ zdarzenia.
eventSink
Typ: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITestEventNotifyIUITestEventNotify Że dzienniki zdarzeń.
Wartość zwracana
Typ: Boolean
true Jeśli typ zdarzenia jest obsługiwany i zostanie dodany pomyślnie; w przeciwnym razie false.
Implementuje
IUITechnologyManager.AddEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify)
Zabezpieczenia programu .NET Framework
- Pełne zaufanie do bezpośredniego wywołującego. Tego elementu członkowskiego nie można używać w kodzie częściowo zaufanym. Aby uzyskać więcej informacji, zobacz Używanie bibliotek pochodzących z częściowo zaufanego kodu.
Zobacz też
Informacje
Przestrzeń nazw Microsoft.VisualStudio.TestTools.UITest.Extension