Edit

Share via


RoleProviderCollection.Add(ProviderBase) Method

Definition

Adds a role provider to the collection.

public:
 override void Add(System::Configuration::Provider::ProviderBase ^ provider);
public override void Add (System.Configuration.Provider.ProviderBase provider);
override this.Add : System.Configuration.Provider.ProviderBase -> unit
Public Overrides Sub Add (provider As ProviderBase)

Parameters

provider
ProviderBase

The role provider to add to the collection.

Exceptions

provider is null.

provider is not of a type that inherits the RoleProvider abstract class.

Remarks

This constructor is not intended to be used from your code.

Applies to

See also