ProfilePropertySettings 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
클래스는 ProfilePropertySettings 프로그래밍 방식으로 액세스 하 고 구성 파일의 섹션을 profiles 수정 하는 방법을 제공 합니다. 이 클래스는 상속할 수 없습니다.
public ref class ProfilePropertySettings sealed : System::Configuration::ConfigurationElement
public sealed class ProfilePropertySettings : System.Configuration.ConfigurationElement
type ProfilePropertySettings = class
inherit ConfigurationElement
Public NotInheritable Class ProfilePropertySettings
Inherits ConfigurationElement
- 상속
예제
다음 코드 예제에서는 개체의 컬렉션을 ProfilePropertySettings 포함 하는 속성 값에 액세스 PropertySettings 하는 방법을 보여 줍니다. 이 코드 예제는 클래스에 제공된 더 큰 예제의 ProfileSection 일부입니다.
// Display all current root ProfilePropertySettings.
Console.WriteLine("Current Root ProfilePropertySettings:");
int rootPPSCtr = 0;
foreach (ProfilePropertySettings rootPPS in profileSection.PropertySettings)
{
Console.WriteLine(" {0}: ProfilePropertySetting '{1}'", ++rootPPSCtr,
rootPPS.Name);
}
' Display all current root ProfilePropertySettings.
Console.WriteLine("Current Root ProfilePropertySettings:")
Dim rootPPSCtr As Integer = 0
For Each rootPPS As ProfilePropertySettings In profileSection.PropertySettings
Console.WriteLine(" {0}: ProfilePropertySetting '{1}'", ++rootPPSCtr, _
rootPPS.Name)
Next
설명
이 클래스는 ProfilePropertySettings 구성 파일 섹션의 하위 섹션 profile 에 추가된 개별 속성의 정의를 프로그래밍 방식으로 만들고, 액세스하고, 수정하는 properties 방법을 제공합니다.
구성 파일의 섹션은 profile 사용자 프로필에 대한 스키마를 지정합니다. 런타임에 ASP.NET 컴파일 시스템은 섹션에 profile 지정된 정보를 사용하여 파생되는 ProfileBase클래스ProfileCommon를 생성합니다.
ProfileCommon 클래스 정의는 구성 파일 섹션의 하위 섹션에 propertiesprofile 정의된 속성을 기반으로 합니다. 이 클래스의 인스턴스는 각 사용자 프로필에 대해 만들어지고 속성을 통해 HttpContext.Profile 코드의 개별 프로필 값에 액세스할 수 있습니다. 프로필 속성에 대한 자세한 내용은 ASP.NET 프로필 속성 개요를 참조하세요. ASP.NET 2.0에 추가된 프로필 기능에 대한 자세한 내용은 ASP.NET 프로필 속성 개요를 참조하세요.
생성자
| Name | Description |
|---|---|
| ProfilePropertySettings(String, Boolean, SerializationMode, String, String, String, Boolean, String) |
지정된 이름과 설정을 사용하여 클래스의 ProfilePropertySettings 새 인스턴스를 초기화합니다. |
| ProfilePropertySettings(String) |
지정된 이름을 사용하여 클래스의 ProfilePropertySettings 새 인스턴스를 초기화합니다. |
속성
| Name | Description |
|---|---|
| AllowAnonymous |
동적으로 생성된 |
| CurrentConfiguration |
현재 Configuration 인스턴스가 속한 구성 계층 구조를 나타내는 최상위 ConfigurationElement 인스턴스에 대한 참조를 가져옵니다. (다음에서 상속됨 ConfigurationElement) |
| CustomProviderData |
프로필 속성 공급자에 대한 사용자 지정 데이터 문자열을 가져오거나 설정합니다. |
| DefaultValue |
동적으로 생성된 |
| ElementInformation |
개체의 ElementInformation 사용자 지정할 수 없는 정보 및 기능을 포함하는 개체를 ConfigurationElement 가져옵니다. (다음에서 상속됨 ConfigurationElement) |
| ElementProperty |
ConfigurationElementProperty 개체 자체를 나타내는 개체를 ConfigurationElement 가져옵니다. (다음에서 상속됨 ConfigurationElement) |
| EvaluationContext |
ContextInformation 개체에 대한 ConfigurationElement 개체를 가져옵니다. (다음에서 상속됨 ConfigurationElement) |
| HasContext |
속성CurrentConfiguration이 .인지 여부를 |
| Item[ConfigurationProperty] |
이 구성 요소의 속성 또는 특성을 가져오거나 설정합니다. (다음에서 상속됨 ConfigurationElement) |
| Item[String] |
이 구성 요소의 속성, 특성 또는 자식 요소를 가져오거나 설정합니다. (다음에서 상속됨 ConfigurationElement) |
| LockAllAttributesExcept |
잠긴 특성의 컬렉션을 가져옵니다. (다음에서 상속됨 ConfigurationElement) |
| LockAllElementsExcept |
잠긴 요소의 컬렉션을 가져옵니다. (다음에서 상속됨 ConfigurationElement) |
| LockAttributes |
잠긴 특성의 컬렉션을 가져옵니다. (다음에서 상속됨 ConfigurationElement) |
| LockElements |
잠긴 요소의 컬렉션을 가져옵니다. (다음에서 상속됨 ConfigurationElement) |
| LockItem |
요소가 잠겨 있는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ConfigurationElement) |
| Name |
동적으로 생성된 |
| Properties |
속성의 컬렉션을 가져옵니다. (다음에서 상속됨 ConfigurationElement) |
| Provider |
명명된 속성을 serialize할 때 사용할 공급자의 이름을 가져오거나 설정합니다. |
| ReadOnly |
동적으로 생성된 |
| SerializeAs |
동적으로 생성된 |
| Type |
동적으로 생성된 |