Editar

Compartir a través de


SqlPersonalizationProvider.Initialize(String, NameValueCollection) Method

Definition

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

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

Parameters

name
String

The application name as it appears in the configuration file.

configSettings
NameValueCollection

The configuration settings for the application.

Exceptions

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 null.

Remarks

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

Applies to