SettingsProviderCollection.Add Method
Assembly: System (in system.dll)
| Exception type | Condition |
|---|---|
| The provider parameter is not of type SettingsProvider. -or- The Name property of the provider parameter is null or an empty string. -or- A settings provider with the same Name already exists in the collection. | |
| The collection is read-only. | |
| The provider parameter is a null reference (Nothing in Visual Basic). |
The Name property of the SettingsProvider is used as the storage key.
Caution: |
|---|
| Although the Add method has a single ProviderBase parameter to match the signature of this same method in the base class ProviderCollection, this method will throw an exception if the provider parameter is not of type SettingsProvider. |
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Caution: