AccessibleObject.RaiseAutomationNotification 方法

定义

引发 UI 自动化通知事件。

C#
public bool RaiseAutomationNotification(System.Windows.Forms.Automation.AutomationNotificationKind notificationKind, System.Windows.Forms.Automation.AutomationNotificationProcessing notificationProcessing, string notificationText);
C#
public bool RaiseAutomationNotification(System.Windows.Forms.Automation.AutomationNotificationKind notificationKind, System.Windows.Forms.Automation.AutomationNotificationProcessing notificationProcessing, string? notificationText);

参数

notificationKind
AutomationNotificationKind

通知的类型。

notificationProcessing
AutomationNotificationProcessing

如何处理通知的指示器。

notificationText
String

通知的文本。

返回

如果操作成功,则为 true;如果基础的 Windows 基础结构不可用或操作失败,则为 false。 调用 GetLastWin32Error() 以获取详细信息。

注解

此事件从 Windows 10 版本 1709 开始提供。

适用于

产品 版本
.NET Framework 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10