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