Metodo UITechnologyManager.AddGlobalEventHandler
Aggiunge un evento sink globale a questo gestore tecnologia.
Spazio dei nomi: Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly: Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)
Sintassi
'Dichiarazione
Public MustOverride Function AddGlobalEventHandler ( _
eventType As UITestEventType, _
eventSink As IUITestEventNotify _
) As Boolean
public abstract bool AddGlobalEventHandler(
UITestEventType eventType,
IUITestEventNotify eventSink
)
public:
virtual bool AddGlobalEventHandler(
UITestEventType eventType,
IUITestEventNotify^ eventSink
) abstract
abstract AddGlobalEventHandler :
eventType:UITestEventType *
eventSink:IUITestEventNotify -> bool
public abstract function AddGlobalEventHandler(
eventType : UITestEventType,
eventSink : IUITestEventNotify
) : boolean
Parametri
eventType
Tipo: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventTypeMembro dell'enumerazione UITestEventType che specifica il tipo di evento.
eventSink
Tipo: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITestEventNotifyOggetto IUITestEventNotify che registra gli eventi.
Valore restituito
Tipo: Boolean
true se il tipo di evento è supportato e viene aggiunto correttamente. In caso contrario, false.
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per altre informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.
Vedere anche
Riferimenti
Spazio dei nomi Microsoft.VisualStudio.TestTools.UITest.Extension