Control.ControlAccessibleObject.RaiseLiveRegionChanged Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Déclenche l’événement LiveRegionChanged UI Automation.
public:
override bool RaiseLiveRegionChanged();
public override bool RaiseLiveRegionChanged();
override this.RaiseLiveRegionChanged : unit -> bool
Public Overrides Function RaiseLiveRegionChanged () As Boolean
Retours
truesi l’opération réussit ; sinon, sinon. false
Exceptions
Le contrôle propriétaire n’est pas une région active.
Remarques
Pour que cette méthode soit efficace, le contrôle doit implémenter l’interface System.Windows.Forms.Automation.IAutomationLiveRegion, et sa propriété LiveSetting doit retourner AutomationLiveSetting.Polite ou Assertive. En outre, l’application doit être recompilée pour cibler .NET Framework 4.8 ou opter pour cette fonctionnalité à l’aide de commutateurs de compatibilité.