AccessibleObject.RaiseAutomationNotification 方法

定義

引發使用者介面自動化通知事件。

public:
 bool RaiseAutomationNotification(System::Windows::Forms::Automation::AutomationNotificationKind notificationKind, System::Windows::Forms::Automation::AutomationNotificationProcessing notificationProcessing, System::String ^ notificationText);
public bool RaiseAutomationNotification (System.Windows.Forms.Automation.AutomationNotificationKind notificationKind, System.Windows.Forms.Automation.AutomationNotificationProcessing notificationProcessing, string notificationText);
public bool RaiseAutomationNotification (System.Windows.Forms.Automation.AutomationNotificationKind notificationKind, System.Windows.Forms.Automation.AutomationNotificationProcessing notificationProcessing, string? notificationText);
member this.RaiseAutomationNotification : System.Windows.Forms.Automation.AutomationNotificationKind * System.Windows.Forms.Automation.AutomationNotificationProcessing * string -> bool
Public Function RaiseAutomationNotification (notificationKind As AutomationNotificationKind, notificationProcessing As AutomationNotificationProcessing, notificationText As String) As Boolean

參數

notificationKind
AutomationNotificationKind

通知類型。

notificationProcessing
AutomationNotificationProcessing

如何處理通知的指示器。

notificationText
String

通知文字。

傳回

如果作業成功,則為 true;如果基本的 Windows 基礎結構無法使用或作業失敗,則為 false。 呼叫 GetLastWin32Error() 以查看詳細資料。

備註

從 1709 版Windows 10開始,即可使用此事件。

適用於