Initialize Method

MySQL Connector/Net

Initializes the MySQL membership provider with the property values specified in the ASP.NET application's configuration file. This method is not intended to be used directly from your code.

Namespace:  MySql.Web.Security
Assembly:  MySql.Web (in MySql.Web.dll) Version: 6.2.2.0

Syntax

C#
public override void Initialize(
	string name,
	NameValueCollection config
)
Visual Basic (Declaration)
Public Overrides Sub Initialize ( _
	name As String, _
	config As NameValueCollection _
)
Visual C++
public:
virtual void Initialize(
	String^ name, 
	NameValueCollection^ config
) override

Parameters

name
Type: System..::.String
The name of the MySQLMembershipProvider instance to initialize.
config
Type: System.Collections.Specialized..::.NameValueCollection
A collection of the name/value pairs representing the provider-specific attributes specified in the configuration for this provider.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionconfig is a null reference.
System..::.InvalidOperationExceptionAn attempt is made to call Initialize(String, NameValueCollection) on a provider after the provider has already been initialized.
System.Configuration.Provider..::.ProviderException

See Also