<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.0" />

ApplicationSettingsBase

Acts as a base class for deriving concrete wrapper classes to implement the application settings feature in Window Forms applications.
public string SettingsKey { get; set; }

Gets or sets the settings key for the application settings group.

Occurs after the value of an application settings property is changed.

Occurs before the value of an application settings property is changed.

Occurs after the application settings are retrieved from storage.

Occurs before values are saved to the data store.

Initializes an instance of the ApplicationSettingsBase class to its default state.

Initializes an instance of the ApplicationSettingsBase class using the supplied owner component.

protected ApplicationSettingsBase(string settingsKey)

Initializes an instance of the ApplicationSettingsBase class using the supplied settings key.

protected ApplicationSettingsBase(IComponent owner, string settingsKey)

Initializes an instance of the ApplicationSettingsBase class using the supplied owner component and settings key.

public object GetPreviousVersion(string propertyName)

Returns the value of the named settings property for the previous version of the same application.

protected virtual void OnPropertyChanged(object sender, PropertyChangedEventArgs e)

Raises the PropertyChanged event.

protected virtual void OnSettingChanging(object sender, SettingChangingEventArgs e)

Raises the SettingChanging event.

protected virtual void OnSettingsLoaded(object sender, SettingsLoadedEventArgs e)

Raises the SettingsLoaded event.

protected virtual void OnSettingsSaving(object sender, CancelEventArgs e)

Raises the SettingsSaving event.

public void Reload()

Refreshes the application settings property values from persistent storage.

public void Reset()

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

public virtual void Upgrade()

Updates application settings to reflect a more recent installation of the application.