UITechnologyManagerProxy.AddGlobalEventHandler, méthode
Ajoute un récepteur d'agrégation pour avertir les actions générées par le plug-in
Espace de noms : Microsoft.VisualStudio.TestTools.UITesting
Assembly : Microsoft.VisualStudio.TestTools.UITesting (dans Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntaxe
'Déclaration
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
Paramètres
eventType
Type : Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventTypeType d'événement à l'écoute sur.
eventSink
Type : Microsoft.VisualStudio.TestTools.UITest.Extension.IUITestEventNotifyRécepteur utilisé pour la notification
Valeur de retour
Type : Boolean
True s'il a réussi, sinon false.
Sécurité .NET Framework
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, voir Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.