Partager via


UITechnologyManager.AddGlobalEventHandler, méthode

Ajoute un récepteur d'événements global à ce gestionnaire de technologies.

Espace de noms :  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly :  Microsoft.VisualStudio.TestTools.UITest.Extension (dans Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntaxe

'Déclaration
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

Paramètres

Valeur de retour

Type : Boolean
true si le type d'événement est pris en charge et correctement ajouté ; sinon false.

Sécurité .NET Framework

Voir aussi

Référence

UITechnologyManager Classe

Microsoft.VisualStudio.TestTools.UITest.Extension, espace de noms

UITestEventType

IUITestEventNotify