SqlPersonalizationProvider.Initialize Method

Note: This method is new in the .NET Framework version 2.0.

Implements the initialization procedures required for a Microsoft SQL Server personalization provider. This method is not intended to be used directly from your code.

Namespace: System.Web.UI.WebControls.WebParts
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
)

Parameters

name

The application name as it appears in the configuration file.

configSettings

The configuration settings for the application.

Exception typeCondition

ProviderException

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.

ArgumentNullException

configSettings is a null reference (Nothing in Visual Basic).

This method provides the initialization procedures for using personalization with a SQL database and is not intended to be used directly from your code.

Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: