ApplicationSettingsBase.Reset Method

Note: This method is new in the .NET Framework version 2.0.

Restores the persisted application settings values to their corresponding default properties.

Namespace: System.Configuration
Assembly: System (in system.dll)

public void Reset ()
public void Reset ()
public function Reset ()

The Reset method overwrites the user-scoped settings properties by restoring the currently persisted value of each application settings. This method performs the following actions:

Reload contrasts with Reset in that the former will load the last set of saved application settings values, whereas the latter will load the saved default values.

The following code example shows the Reset method being invoked in the body of the Click event handler for a button named btnReset. As a result of this call, the stored default values for the application settings are reloaded into their corresponding properties. The full code example is listed in the ApplicationSettingsBase class overview.

private void btnReload_Click(object sender, EventArgs e)

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.

.NET Framework

Supported in: 2.0

Community Additions