ApplicationSettingsBase.SettingsSaving Event
Assembly: System (in system.dll)
'Declaration Public Event SettingsSaving As SettingsSavingEventHandler 'Usage Dim instance As ApplicationSettingsBase Dim handler As SettingsSavingEventHandler AddHandler instance.SettingsSaving, handler
/** @event */ public void add_SettingsSaving (SettingsSavingEventHandler value) /** @event */ public void remove_SettingsSaving (SettingsSavingEventHandler value)
JScript supports the use of events, but not the declaration of new ones.
The SettingsSaving event is raised by the Save method before it stores the application settings properties to their associated data store. The associated event handler can cancel this event.
The following code example shows the SettingsSaving event handler for object of type FormSettings, which is a wrapper class derived from ApplicationSettingsBase. The handler queries the user to save the current application settings property values. The full code example is listed in the ApplicationSettingsBase class overview.
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.