語言

NotificationEventArgs 建構函式

定義

初始化一個新的類別實例 NotificationEventArgs ,並使用指定的參數。

public:
 NotificationEventArgs(System::Windows::Automation::AutomationNotificationKind notificationKind, System::Windows::Automation::AutomationNotificationProcessing notificationProcessing, System::String ^ displayString, System::String ^ activityId);
public NotificationEventArgs(System.Windows.Automation.AutomationNotificationKind notificationKind, System.Windows.Automation.AutomationNotificationProcessing notificationProcessing, string displayString, string activityId);
new System.Windows.Automation.NotificationEventArgs : System.Windows.Automation.AutomationNotificationKind * System.Windows.Automation.AutomationNotificationProcessing * string * string -> System.Windows.Automation.NotificationEventArgs
Public Sub New (notificationKind As AutomationNotificationKind, notificationProcessing As AutomationNotificationProcessing, displayString As String, activityId As String)

參數

notificationKind
AutomationNotificationKind

指定通知的類型。

notificationProcessing
AutomationNotificationProcessing

指定處理通知的順序。

displayString
String

一個描述事件的顯示字串。

activityId
String

一個獨特的非本地化字串,用來識別一個動作或一組動作。 利用此資訊傳遞給事件處理者。

適用於