AccessibleObject.RaiseAutomationNotification(AutomationNotificationKind, AutomationNotificationProcessing, String) 方法

定義

引發使用者介面自動化通知事件。Raises the UI automation notification event.

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);
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

通知類型。The type of notification.

notificationProcessing
AutomationNotificationProcessing

如何處理通知的指示器。An indicator of how to process notifications.

notificationText
String

通知文字。The text of the notification.

傳回

如果作業成功,則為 true;如果基本的 Windows 基礎結構無法使用或作業失敗,則為 falsetrue if the operation succeeds; false if the underlying Windows infrastructure is not available or the operation failed. 呼叫 GetLastWin32Error() 以查看詳細資料。Call GetLastWin32Error() for details.

備註

從 Windows 10 版本1709開始提供此事件。This event is available starting with Windows 10, version 1709.

適用於