Condividi tramite


Metodo DataCollectorNotifications.RaiseCustomEventAsync (CustomNotificationEventArgs, NotificationBroadcastLevel, Object)

Genera in modo asincrono un evento personalizzato tramite gli argomenti di evento, un'indicazione facoltativa sul livello di trasmissione e un token utente specificati.

Spazio dei nomi:  Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)

Sintassi

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

Parametri

  • userToken
    Tipo: Object

    Token che può essere restituito nell'evento CustomEventCompleted per identificare questa notifica personalizzata.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

DataCollectorNotifications Classe

Overload RaiseCustomEventAsync

Spazio dei nomi Microsoft.VisualStudio.TestTools.Execution

CustomNotificationEventArgs

NotificationBroadcastLevel

CustomEventCompleted