Freigeben über


DataCollectorNotifications.RaiseCustomEventAsync-Methode (CustomNotificationEventArgs, NotificationBroadcastLevel, Object)

Löst asynchron ein benutzerdefiniertes Ereignis mit den bereitgestellten Ereignisargumenten, der optionalen Angabe einer Übertragungsebene und einem Benutzertoken aus.

Namespace:  Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)

Syntax

'Declaration
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
)

Parameter

  • userToken
    Typ: Object

    Ein Token, das im CustomEventCompleted-Ereignis zurückgegeben werden kann, um diese benutzerdefinierte Benachrichtigung zu identifizieren.

.NET Framework-Sicherheit

Siehe auch

Referenz

DataCollectorNotifications Klasse

RaiseCustomEventAsync-Überladung

Microsoft.VisualStudio.TestTools.Execution-Namespace

CustomNotificationEventArgs

NotificationBroadcastLevel

CustomEventCompleted