ProtectedConfigurationProviderCollection
Provides a collection of ProtectedConfigurationProvider objects.
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);
}
}
}