ClientSettingsProvider.Initialize(String, NameValueCollection) Method

Definition

Initializes the provider.

public:
 override void Initialize(System::String ^ name, System::Collections::Specialized::NameValueCollection ^ config);
public override void Initialize (string name, System.Collections.Specialized.NameValueCollection config);
override this.Initialize : string * System.Collections.Specialized.NameValueCollection -> unit
Public Overrides Sub Initialize (name As String, config As NameValueCollection)

Parameters

name
String

The friendly name of the provider.

config
NameValueCollection

A collection of name/value pairs representing the provider-specific attributes specified in the configuration for this provider.

Exceptions

name is null.

name is Empty.

-or-

config contains an unrecognized value.

This ClientRoleProvider has already been initialized.

Remarks

This method is used internally by the application settings system and it not meant to be used by your application code.

The ASP.NET extensibility model calls the Initialize method to initialize the ClientSettingsProvider by using information in your application configuration file. This method recognizes the following Web settings service configuration attributes:

  • name
  • description
  • connectionStringName
  • serviceUri

Applies to

See also