PersonalizationProviderCollection::Add Method (ProviderBase^)
.NET Framework (current version)
Adds an instance of a class that implements PersonalizationProvider to the collection.
Assembly: System.Web (in System.Web.dll)
Parameters
- provider
-
Type:
System.Configuration.Provider::ProviderBase^
The personalization provider to be added.
| Exception | Condition |
|---|---|
| ArgumentException | The provider specified is not a PersonalizationProvider. |
| ArgumentNullException | The provider parameter is null. |
Use this method to add PersonalizationProvider-derived instances to the collection.
.NET Framework
Available since 2.0
Available since 2.0
Show: