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
eventArgs
Tipo: Microsoft.VisualStudio.TestTools.Execution.CustomNotificationEventArgsUna classe personalizzata derivata da CustomNotificationEventArgs.
broadcastLevel
Tipo: Microsoft.VisualStudio.TestTools.Execution.NotificationBroadcastLevelMembro dell'enumerazione NotificationBroadcastLevel.
userToken
Tipo: ObjectToken che può essere restituito nell'evento CustomEventCompleted per identificare questa notifica personalizzata.
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per altre informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.
Vedere anche
Riferimenti
DataCollectorNotifications Classe
Overload RaiseCustomEventAsync