使用提供的事件参数引发自定义事件。
命名空间:  Microsoft.VisualStudio.TestTools.Execution
程序集:  Microsoft.VisualStudio.QualityTools.ExecutionCommon(在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)
语法
声明
Public Sub RaiseCustomEvent ( _
    eventArgs As CustomNotificationEventArgs _
)
public void RaiseCustomEvent(
    CustomNotificationEventArgs eventArgs
)
public:
void RaiseCustomEvent(
    CustomNotificationEventArgs^ eventArgs
)
member RaiseCustomEvent : 
        eventArgs:CustomNotificationEventArgs -> unit 
public function RaiseCustomEvent(
    eventArgs : CustomNotificationEventArgs
)
参数
- eventArgs
 类型:Microsoft.VisualStudio.TestTools.Execution.CustomNotificationEventArgs
 派生自 CustomNotificationEventArgs 的自定义类。
备注
只有所有诊断数据适配器已处理或忽略该事件时,此 RaiseCustomEvent 方法才会返回。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。