ClientSettingsProvider::Initialize Method
Initializes the provider.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Parameters
- name
- Type: System::String
The friendly name of the provider.
- config
- Type: System.Collections.Specialized::NameValueCollection
A collection of name/value pairs representing the provider-specific attributes specified in the configuration for this provider.
| Exception | Condition |
|---|---|
| ArgumentNullException | name is nullptr. |
| ArgumentException | name is Empty. -or- config contains an unrecognized value. For more information, see the Remarks section. |
| InvalidOperationException | This ClientRoleProvider has already been initialized. |
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
For more information about these attributes, see How to: Configure Client Application Services.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.