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
)
參數
- eventArgs
型別:Microsoft.VisualStudio.TestTools.Execution.CustomNotificationEventArgs
衍生自 CustomNotificationEventArgs 的自訂類別。
- broadcastLevel
型別:Microsoft.VisualStudio.TestTools.Execution.NotificationBroadcastLevel
NotificationBroadcastLevel 列舉的成員。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。