Ce sujet n'a pas encore été évalué - Évaluez ce sujet

WindowClosedEventArgs, classe

Contains information about the event that is raised when a window is closed.

Espace de noms: System.Windows.Automation
Assembly : UIAutomationTypes (dans uiautomationtypes.dll)
Espace de noms XML :  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public sealed class WindowClosedEventArgs : AutomationEventArgs
public final class WindowClosedEventArgs extends AutomationEventArgs
public final class WindowClosedEventArgs extends AutomationEventArgs
Non applicable.

To subscribe to window-closed events, call AddAutomationEventHandler, specifying WindowClosedEvent in the eventId parameter and supplying an UI Automation event handler that takes a WindowClosedEventArgs parameter.

When your application receives a window-closed event, the sender parameter of the event handler cannot be used to obtain information about the window that has closed, because the corresponding UI Automation element is no longer valid.

For example code, see GetRuntimeId.

System.Object
   System.EventArgs
     System.Windows.Automation.AutomationEventArgs
      System.Windows.Automation.WindowClosedEventArgs
Les membres statiques publics (Shared en Visual Basic) de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.

Microsoft .NET Framework 3.0 est pris en charge sur Windows Vista, Microsoft Windows XP SP2 et Windows Server 2003 SP1.

.NET Framework

Prise en charge dans : 3.0
Cela vous a-t-il été utile ?
(1500 caractères restants)

Ajouts de la communauté

AJOUTER
Microsoft réalise une enquête en ligne pour recueillir votre opinion sur le site Web de MSDN. Si vous choisissez d’y participer, cette enquête en ligne vous sera présentée lorsque vous quitterez le site Web de MSDN.

Si vous souhaitez y participer,
© 2013 Microsoft. Tous droits réservés.