AccessibleObject.RaiseAutomationNotification 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
引发 UI 自动化通知事件。
public:
bool RaiseAutomationNotification(System::Windows::Forms::Automation::AutomationNotificationKind notificationKind, System::Windows::Forms::Automation::AutomationNotificationProcessing notificationProcessing, System::String ^ notificationText);
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);
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() 以获取详细信息。
此事件从 Windows 10 版本 1709 开始提供。
产品 | 版本 |
---|---|
.NET Framework | 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |