RoleProviderCollection.Add Method (ProviderBase)

 

Adds a role provider to the collection.

Namespace:   System.Web.Security
Assembly:  System.Web (in System.Web.dll)

override Add : 
        provider:ProviderBase -> unit

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