共用方式為


DataCollectorNotifications.RaiseCustomEvent 方法 (CustomNotificationEventArgs, NotificationBroadcastLevel)

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

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

語法

'宣告
Public MustOverride Sub RaiseCustomEvent ( _
    eventArgs As CustomNotificationEventArgs, _
    broadcastLevel As NotificationBroadcastLevel _
)
public abstract void RaiseCustomEvent(
    CustomNotificationEventArgs eventArgs,
    NotificationBroadcastLevel broadcastLevel
)
public:
virtual void RaiseCustomEvent(
    CustomNotificationEventArgs^ eventArgs, 
    NotificationBroadcastLevel broadcastLevel
) abstract
abstract RaiseCustomEvent : 
        eventArgs:CustomNotificationEventArgs * 
        broadcastLevel:NotificationBroadcastLevel -> unit 
public abstract function RaiseCustomEvent(
    eventArgs : CustomNotificationEventArgs, 
    broadcastLevel : NotificationBroadcastLevel
)

參數

備註

處理所有診斷資料配接器或忽略事件之前,這個 RaiseCustomEvent 方法不會傳回。

.NET Framework 安全性

請參閱

參考

DataCollectorNotifications 類別

RaiseCustomEvent 多載

Microsoft.VisualStudio.TestTools.Execution 命名空間

CustomNotificationEventArgs

NotificationBroadcastLevel