共用方式為


DataCollectorNotifications.RaiseCustomEventAsync 方法 (CustomNotificationEventArgs, NotificationBroadcastLevel, Object)

使用提供的事件引數、廣播層級指示和使用者語彙基元,非同步引發自訂事件。

命名空間:  Microsoft.VisualStudio.TestTools.Execution
組件:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)

語法

'宣告
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
)

參數

.NET Framework 安全性

請參閱

參考

DataCollectorNotifications 類別

RaiseCustomEventAsync 多載

Microsoft.VisualStudio.TestTools.Execution 命名空間

CustomNotificationEventArgs

NotificationBroadcastLevel

CustomEventCompleted