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

定义

引发 UI 自动化通知事件。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.

适用于