Partager via


DataCollectorNotifications.RaiseCustomEventAsync, méthode (CustomNotificationEventArgs, NotificationBroadcastLevel, Object)

Déclenche, de manière asynchrone, un événement personnalisé à l'aide des arguments d'événement fournis, d'une indication du niveau de diffusion et d'un jeton utilisateur.

Espace de noms :  Microsoft.VisualStudio.TestTools.Execution
Assembly :  Microsoft.VisualStudio.QualityTools.ExecutionCommon (dans Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)

Syntaxe

'Déclaration
Public MustOverride Sub RaiseCustomEventAsync ( _
    eventArgs As CustomNotificationEventArgs, _
    broadcastLevel As NotificationBroadcastLevel, _
    userToken As Object _
)
public abstract void RaiseCustomEventAsync(
    CustomNotificationEventArgs eventArgs,
    NotificationBroadcastLevel broadcastLevel,
    Object userToken
)
public:
virtual void RaiseCustomEventAsync(
    CustomNotificationEventArgs^ eventArgs, 
    NotificationBroadcastLevel broadcastLevel, 
    Object^ userToken
) abstract
abstract RaiseCustomEventAsync : 
        eventArgs:CustomNotificationEventArgs * 
        broadcastLevel:NotificationBroadcastLevel * 
        userToken:Object -> unit 
public abstract function RaiseCustomEventAsync(
    eventArgs : CustomNotificationEventArgs, 
    broadcastLevel : NotificationBroadcastLevel, 
    userToken : Object
)

Paramètres

Sécurité .NET Framework

Voir aussi

Référence

DataCollectorNotifications Classe

RaiseCustomEventAsync, surcharge

Microsoft.VisualStudio.TestTools.Execution, espace de noms

CustomNotificationEventArgs

NotificationBroadcastLevel

CustomEventCompleted