Metoda UITechnologyManagerProxy.AddGlobalEventHandler —
Dodaje globalny obiekt sink powiadomić akcje wywoływane przez dodatek
Przestrzeń nazw: Microsoft.VisualStudio.TestTools.UITesting
Zestaw: Microsoft.VisualStudio.TestTools.UITesting (w Microsoft.VisualStudio.TestTools.UITesting.dll)
Składnia
'Deklaracja
Public Overrides Function AddGlobalEventHandler ( _
eventType As UITestEventType, _
eventSink As IUITestEventNotify _
) As Boolean
public override bool AddGlobalEventHandler(
UITestEventType eventType,
IUITestEventNotify eventSink
)
public:
virtual bool AddGlobalEventHandler(
UITestEventType eventType,
IUITestEventNotify^ eventSink
) override
abstract AddGlobalEventHandler :
eventType:UITestEventType *
eventSink:IUITestEventNotify -> bool
override AddGlobalEventHandler :
eventType:UITestEventType *
eventSink:IUITestEventNotify -> bool
public override function AddGlobalEventHandler(
eventType : UITestEventType,
eventSink : IUITestEventNotify
) : boolean
Parametry
- eventType
Typ: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventType
Typ zdarzenia do słuchania.
- eventSink
Typ: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITestEventNotify
Zlew, używany do powiadomień
Wartość zwracana
Typ: System.Boolean
PRAWDA, jeśli jest pomyślne, false w przeciwnym razie.
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 Przy użyciu bibliotek z częściowo zaufanego kodu..