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

ProtectedConfigurationProviderCollection

using System.Configuration.Provider; namespace System.Configuration { public class ProtectedConfigurationProviderCollection : ProviderCollection { public new ProtectedConfigurationProvider this[string name] { get { return (ProtectedConfigurationProvider)base[name]; } } public override void Add(ProviderBase provider) { if (provider == null) throw new ArgumentNullException("provider"); if (!(provider is ProtectedConfigurationProvider)) throw new ArgumentException(System.SR.Format(System.SR.Config_provider_must_implement_type, typeof(ProtectedConfigurationProvider).ToString()), "provider"); base.Add(provider); } } }