ProtectedConfigurationProviderCollection::Add Method (ProviderBase^)
.NET Framework (current version)
Adds a ProtectedConfigurationProvider object to the collection.
Assembly: System.Configuration (in System.Configuration.dll)
Parameters
- provider
-
Type:
System.Configuration.Provider::ProviderBase^
A ProtectedConfigurationProvider object to add to the collection.
| Exception | Condition |
|---|---|
| ArgumentNullException | provider is null. |
| ArgumentException | provider is not a ProtectedConfigurationProvider object. |
| ConfigurationException | The ProtectedConfigurationProvider object to add already exists in the collection. - or - The collection is read-only. |
.NET Framework
Available since 2.0
Available since 2.0
Show: