Initialize Method

MySQL Connector/Net

Initializes the provider.

Namespace:  MySql.Web.Profile
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 friendly name of the provider.
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..::.ArgumentNullExceptionThe name of the provider is null.
System..::.ArgumentExceptionThe name of the provider has a length of zero.
System..::.InvalidOperationExceptionAn attempt is made to call Initialize(String, NameValueCollection) on a provider after the provider has already been initialized.

See Also