<PackageReference Include="System.Configuration.ConfigurationManager" Version="6.0.0-preview.5.21301.5" />

IPersistComponentSettings

public interface IPersistComponentSettings
Defines standard functionality for controls or libraries that store and retrieve application settings.
bool SaveSettings { get; set; }

Gets or sets a value indicating whether the control should automatically persist its application settings properties.

string SettingsKey { get; set; }

Gets or sets the value of the application settings key for the current instance of the control.

Reads the control's application settings into their corresponding properties and updates the control's state.

Resets the control's application settings properties to their default values.

Persists the control's application settings properties.