<PackageReference Include="System.Configuration.ConfigurationManager" Version="7.0.0-preview.2.22152.2" />

IPersistComponentSettings

public interface IPersistComponentSettings
Components should implement this interface if they want to persist custom settings in a hosting application. This interface allows the application author to tell a control whether to persist, when to load, save etc.
namespace System.Configuration { public interface IPersistComponentSettings { bool SaveSettings { get; set; } string SettingsKey { get; set; } void LoadComponentSettings(); void SaveComponentSettings(); void ResetComponentSettings(); } }