System.Configuration.IApplicationSettingsProvider.Reset Method

Resets the application settings associated with the specified application to their default values.

Syntax

public void Reset (SettingsContext context)

Parameters

context
A System.Configuration.SettingsContext describing the current application usage.

Remarks

The IApplicationSettingsProvider.Reset(SettingsContext) method reinitializes the stored values of the specified application settings group. In contrast, System.Configuration.DefaultSettingValueAttribute supplies a default value for a single settings property during property initialization, if it has no stored value.

The settings provider determines what reasonable defaults are for the specified group of application settings. For example, the implementation in System.Configuration.LocalFileSettingsProvider resets user-scoped settings to their shared values in the application.exe.config file; in contrast, it leaves the application-scoped settings unchanged.

Requirements

Namespace: System.Configuration
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0