共用方式為


DataCollectorNotifications.RaiseCustomEventAsync 方法 (CustomNotificationEventArgs, NotificationBroadcastLevel)

使用提供的事件引數及廣播層級指示,非同步引發自訂事件。

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

語法

'宣告
Public Sub RaiseCustomEventAsync ( _
    eventArgs As CustomNotificationEventArgs, _
    broadcastLevel As NotificationBroadcastLevel _
)
public void RaiseCustomEventAsync(
    CustomNotificationEventArgs eventArgs,
    NotificationBroadcastLevel broadcastLevel
)
public:
void RaiseCustomEventAsync(
    CustomNotificationEventArgs^ eventArgs, 
    NotificationBroadcastLevel broadcastLevel
)
member RaiseCustomEventAsync : 
        eventArgs:CustomNotificationEventArgs * 
        broadcastLevel:NotificationBroadcastLevel -> unit 
public function RaiseCustomEventAsync(
    eventArgs : CustomNotificationEventArgs, 
    broadcastLevel : NotificationBroadcastLevel
)

參數

.NET Framework 安全性

請參閱

參考

DataCollectorNotifications 類別

RaiseCustomEventAsync 多載

Microsoft.VisualStudio.TestTools.Execution 命名空間

CustomNotificationEventArgs

NotificationBroadcastLevel