Add Method
Collapse the table of content
Expand the table of content

RoleProviderCollection.Add Method (ProviderBase)

 

Adds a role provider to the collection.

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

public override void Add(
	ProviderBase provider
)

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:
© 2016 Microsoft