mscorlib(4.0.0.0) API with additions
SettingsProviderCollection.cs
1 using System.Configuration.Provider;
2 
3 namespace System.Configuration
4 {
6  public class SettingsProviderCollection : ProviderCollection
7  {
13  public new SettingsProvider this[string name]
14  {
15  get
16  {
17  return (SettingsProvider)base[name];
18  }
19  }
20 
26  public override void Add(ProviderBase provider)
27  {
28  if (provider == null)
29  {
30  throw new ArgumentNullException("provider");
31  }
32  if (!(provider is SettingsProvider))
33  {
34  throw new ArgumentException(System.SR.GetString("Config_provider_must_implement_type", typeof(SettingsProvider).ToString()), "provider");
35  }
36  base.Add(provider);
37  }
38  }
39 }
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
override void Add(ProviderBase provider)
Adds a new settings provider to the collection.
Definition: __Canon.cs:3
Represents a collection of application settings providers.
Definition: SR.cs:7
The exception that is thrown when one of the arguments provided to a method is not valid.
Acts as a base class for deriving custom settings providers in the application settings architecture.