ProtectedConfigurationProviderCollection.Add Method (ProviderBase)

 

Adds a ProtectedConfigurationProvider object to the collection.

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

public override void Add(
	ProviderBase provider
)

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
Return to top
Show: