ProviderCollection.Add Method
Assembly: System.Configuration (in system.configuration.dll)
| Exception type | Condition |
|---|---|
| The collection is read-only. | |
| provider is a null reference (Nothing in Visual Basic). | |
| The Name of provider is a null reference (Nothing in Visual Basic). - or - The length of the Name of provider is less than 1. |
The Add method first checks for any exceptions (as listed in the Exceptions section), and then calls the Hashtable.Add method. It passes in the object referenced by the provider parameter as well as the Name property of the provider to be used as the key in the Hashtable object.
Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.