|
| MySQL Connector/Net |
| MySQLRoleProvider..::..Initialize Method |
| MySQLRoleProvider Class See Also Send Feedback |
|
Initializes the provider.
Namespace: MySql.Web.Security
Assembly: MySql.Web (in MySql.Web.dll) Version: 6.8.4.0
Syntax
| C# |
|---|
public override void Initialize( string name, NameValueCollection config ) |
| Visual Basic |
|---|
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
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | The name of the provider is null. |
| System..::..ArgumentException | The name of the provider has a length of zero. |
| System..::..InvalidOperationException | An attempt is made to call Initialize(String, NameValueCollection) on a provider after the provider has already been initialized. |