Asynchronously raises a custom event by using the provided event arguments, indication of broadcast level, and user token.
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
)
Parameters
- eventArgs 
 Type: Microsoft.VisualStudio.TestTools.Execution.CustomNotificationEventArgs- A custom class that is derived from CustomNotificationEventArgs. 
- broadcastLevel 
 Type: Microsoft.VisualStudio.TestTools.Execution.NotificationBroadcastLevel- A member of the NotificationBroadcastLevel enumeration. 
- userToken 
 Type: Object- A token that can be returned in the CustomEventCompleted event to identify this custom notification. 
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DataCollectorNotifications Class
RaiseCustomEventAsync Overload