Control.ControlAccessibleObject.RaiseLiveRegionChanged 方法

定义

引发 LiveRegionChanged UI 自动化事件。

public:
 override bool RaiseLiveRegionChanged();
public override bool RaiseLiveRegionChanged();
override this.RaiseLiveRegionChanged : unit -> bool
Public Overrides Function RaiseLiveRegionChanged () As Boolean

返回

true 如果操作成功,则为否则为 false 其他。

例外

所有者控件不是实时区域。

注解

若要使此方法有效,控件必须实现 System.Windows.Forms.Automation.IAutomationLiveRegion 接口,并且其 LiveSetting 属性必须返回 AutomationLiveSetting.PoliteAssertive。 此外,必须将应用程序重新编译为目标.NET Framework 4.8,或使用兼容性开关选择加入此功能。

适用于