SqlPersonalizationProvider.Initialize Method
Assembly: System.Web (in system.web.dll)
public: virtual void Initialize ( String^ name, NameValueCollection^ configSettings ) override
public void Initialize ( String name, NameValueCollection configSettings )
public override function Initialize ( name : String, configSettings : NameValueCollection )
Not applicable.
Parameters
- name
The application name as it appears in the configuration file.
- configSettings
The configuration settings for the application.
| Exception type | Condition |
|---|---|
| No connection string is configured for the provider. - or - The connection string for the provider cannot be found. - or - There are additional attributes on the provider's <add> element beyond those described in the configuration settings. - or - The length of the application name is greater than 256 characters. - or - The application domain hosting the application is running at a trust level below Medium trust. | |
| configSettings is a null reference (Nothing in Visual Basic). |
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.