SqlPersonalizationProvider.Initialize(String, NameValueCollection) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기