RoleProviderCollection.Add Method (ProviderBase)
.NET Framework (current version)
Adds a role provider to the collection.
Assembly: System.Web (in System.Web.dll)
Parameters
- provider
-
Type:
System.Configuration.Provider.ProviderBase
The role provider to add to the collection.
| Exception | Condition |
|---|---|
| System.ArgumentNullException | provider is null. |
| System.ArgumentException | provider is not of a type that inherits the RoleProvider abstract class. |
This constructor is not intended to be used from your code.
.NET Framework
Available since 2.0
Available since 2.0
Show: