|
Cet article a fait l'objet d'une traduction automatique. Déplacez votre pointeur sur les phrases de l'article pour voir la version originale de ce texte. Informations supplémentaires.
|
Traduction
Source
|
SelectionPattern.InvalidatedEvent, champ
Espace de noms : System.Windows.Automation
Assembly : UIAutomationClient (dans UIAutomationClient.dll)
///-------------------------------------------------------------------- /// <summary> /// Subscribe to the selection events of interest. /// </summary> /// <param name="selectionContainer"> /// Automation element that supports SelectionPattern /// </param> ///-------------------------------------------------------------------- private void SetSelectionEventHandlers (AutomationElement selectionContainer) { AutomationEventHandler selectionInvalidatedHandler = new AutomationEventHandler(SelectionInvalidatedHandler); Automation.AddAutomationEventHandler( SelectionPattern.InvalidatedEvent, selectionContainer, TreeScope.Element, SelectionInvalidatedHandler); } ///-------------------------------------------------------------------- /// <summary> /// Selection invalidated event handler. /// </summary> /// <param name="src">Object that raised the event.</param> /// <param name="e">Event arguments.</param> ///-------------------------------------------------------------------- private void SelectionInvalidatedHandler(object src, AutomationEventArgs e) { // TODO: event handling }
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, consultez Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (rôle principal du serveur non pris en charge), Windows Server 2008 R2 (rôle principal du serveur pris en charge avec SP1 ou version ultérieure ; Itanium non pris en charge)
Le .NET Framework ne prend pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.