다음을 통해 공유


RootProfilePropertySettingsCollection 클래스

정의

컬렉션의 계층 구조라는 ProfilePropertySettingsCollection 두 수준의 맨 위 역할을 합니다.

public ref class RootProfilePropertySettingsCollection sealed : System::Web::Configuration::ProfilePropertySettingsCollection
[System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.ProfilePropertySettings))]
public sealed class RootProfilePropertySettingsCollection : System.Web.Configuration.ProfilePropertySettingsCollection
[<System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.ProfilePropertySettings))>]
type RootProfilePropertySettingsCollection = class
    inherit ProfilePropertySettingsCollection
Public NotInheritable Class RootProfilePropertySettingsCollection
Inherits ProfilePropertySettingsCollection
상속
특성

예제

다음 코드 예제에서는 클래스의 RootProfilePropertySettingsCollection 속성으로 형식을 PropertySettings 사용 하는 방법을 보여 있습니다 ProfileSection . 이 코드 예제는 클래스에 제공된 더 큰 예제의 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);
}

// Get and modify a root ProfilePropertySettings object.
Console.WriteLine(
    "Display and modify 'LastReadDate' ProfilePropertySettings:");
ProfilePropertySettings profilePropertySettings =
    profileSection.PropertySettings["LastReadDate"];

// Get the current ReadOnly property value.
Console.WriteLine(
    "Current ReadOnly value: '{0}'", profilePropertySettings.ReadOnly);

// Set the ReadOnly property to true.
profilePropertySettings.ReadOnly = true;

// Get the current AllowAnonymous property value.
Console.WriteLine(
    "Current AllowAnonymous value: '{0}'", profilePropertySettings.AllowAnonymous);

// Set the AllowAnonymous property to true.
profilePropertySettings.AllowAnonymous = true;

// Get the current SerializeAs property value.
Console.WriteLine(
    "Current SerializeAs value: '{0}'", profilePropertySettings.SerializeAs);

// Set the SerializeAs property to SerializationMode.Binary.
profilePropertySettings.SerializeAs = SerializationMode.Binary;

// Get the current Type property value.
Console.WriteLine(
    "Current Type value: '{0}'", profilePropertySettings.Type);

// Set the Type property to "System.DateTime".
profilePropertySettings.Type = "System.DateTime";

// Get the current DefaultValue property value.
Console.WriteLine(
    "Current DefaultValue value: '{0}'", profilePropertySettings.DefaultValue);

// Set the DefaultValue property to "March 16, 2004".
profilePropertySettings.DefaultValue = "March 16, 2004";

// Get the current ProviderName property value.
Console.WriteLine(
    "Current ProviderName value: '{0}'", profilePropertySettings.Provider);

// Set the ProviderName property to "AspNetSqlRoleProvider".
profilePropertySettings.Provider = "AspNetSqlRoleProvider";

// Get the current Name property value.
Console.WriteLine(
    "Current Name value: '{0}'", profilePropertySettings.Name);

// Set the Name property to "LastAccessDate".
profilePropertySettings.Name = "LastAccessDate";

// Display all current ProfileGroupSettings.
Console.WriteLine("Current ProfileGroupSettings:");
int PGSCtr = 0;
foreach (ProfileGroupSettings propGroups in profileSection.PropertySettings.GroupSettings)
{
    Console.WriteLine("  {0}: ProfileGroupSetting '{1}'", ++PGSCtr,
        propGroups.Name);
    int PPSCtr = 0;
    foreach (ProfilePropertySettings props in propGroups.PropertySettings)
    {
        Console.WriteLine("    {0}: ProfilePropertySetting '{1}'", ++PPSCtr,
            props.Name);
    }
}

// Add a new group.
ProfileGroupSettings newPropGroup = new ProfileGroupSettings("Forum");
profileSection.PropertySettings.GroupSettings.Add(newPropGroup);

// Add a new PropertySettings to the group.
ProfilePropertySettings newProp = new ProfilePropertySettings("AvatarImage");
newProp.Type = "System.String, System.dll";
newPropGroup.PropertySettings.Add(newProp);

// Remove a PropertySettings from the group.
newPropGroup.PropertySettings.Remove("AvatarImage");
newPropGroup.PropertySettings.RemoveAt(0);

// Clear all PropertySettings from the group.
newPropGroup.PropertySettings.Clear();


' 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

' Get and modify a root ProfilePropertySettings object.
Console.WriteLine( _
    "Display and modify 'LastReadDate' ProfilePropertySettings:")
Dim profilePropertySettings As ProfilePropertySettings = _
    profileSection.PropertySettings("LastReadDate")

' Get the current ReadOnly property value.
Console.WriteLine( _
    "Current ReadOnly value: '{0}'", profilePropertySettings.ReadOnly)

' Set the ReadOnly property to true.
profilePropertySettings.ReadOnly = true

' Get the current AllowAnonymous property value.
Console.WriteLine( _
    "Current AllowAnonymous value: '{0}'", profilePropertySettings.AllowAnonymous)

' Set the AllowAnonymous property to true.
profilePropertySettings.AllowAnonymous = true

' Get the current SerializeAs property value.
Console.WriteLine( _
    "Current SerializeAs value: '{0}'", profilePropertySettings.SerializeAs)

' Set the SerializeAs property to SerializationMode.Binary.
profilePropertySettings.SerializeAs = SerializationMode.Binary

' Get the current Type property value.
Console.WriteLine( _
    "Current Type value: '{0}'", profilePropertySettings.Type)

' Set the Type property to "System.DateTime".
profilePropertySettings.Type = "System.DateTime"

' Get the current DefaultValue property value.
Console.WriteLine( _
    "Current DefaultValue value: '{0}'", profilePropertySettings.DefaultValue)

' Set the DefaultValue property to "March 16, 2004".
profilePropertySettings.DefaultValue = "March 16, 2004"

' Get the current ProviderName property value.
            Console.WriteLine( _
                "Current ProviderName value: '{0}'", profilePropertySettings.Provider)

' Set the ProviderName property to "AspNetSqlRoleProvider".
            profilePropertySettings.Provider = "AspNetSqlRoleProvider"

' Get the current Name property value.
Console.WriteLine( _
    "Current Name value: '{0}'", profilePropertySettings.Name)

' Set the Name property to "LastAccessDate".
profilePropertySettings.Name = "LastAccessDate"

' Display all current ProfileGroupSettings.
Console.WriteLine("Current ProfileGroupSettings:")
Dim PGSCtr As Integer = 0
For Each propGroups As ProfileGroupSettings In profileSection.PropertySettings.GroupSettings
                    Console.WriteLine("  {0}: ProfileGroupSettings '{1}'", ++PGSCtr, _
        propGroups.Name)
    Dim PPSCtr As Integer = 0
    For Each props As ProfilePropertySettings In propGroups.PropertySettings
        Console.WriteLine("    {0}: ProfilePropertySetting '{1}'", ++PPSCtr, _
            props.Name)
    Next
Next

' Add a new group.
Dim newPropGroup As ProfileGroupSettings = new ProfileGroupSettings("Forum")
profileSection.PropertySettings.GroupSettings.Add(newPropGroup)

' Add a new PropertySettings to the group.
Dim newProp As ProfilePropertySettings = new ProfilePropertySettings("AvatarImage")
newProp.Type = "System.String, System.dll"
newPropGroup.PropertySettings.Add(newProp)

' Remove a PropertySettings from the group.
newPropGroup.PropertySettings.Remove("AvatarImage")
newPropGroup.PropertySettings.RemoveAt(0)

' Clear all PropertySettings from the group.
newPropGroup.PropertySettings.Clear()

설명

클래스는 RootProfilePropertySettingsCollection 루트 수준 ProfilePropertySettingsCollection 컬렉션 및 컬렉션에 대 한 컨테이너입니다 ProfileGroupSettingsCollection . 이러한 컬렉션을 사용하면 각각 명명된 개별 개체를 포함하는 더 많은 ProfilePropertySettingsCollection 컬렉션의 명명된 ProfilePropertySettings 그룹을 만들 수 있습니다. ASP.NET 2.0에 추가된 프로필 기능에 대한 자세한 내용은 ASP.NET 프로필 속성을 참조하세요.

PropertySettings 속성은 RootProfilePropertySettingsCollection 구성 파일 섹션의 profile 하위 섹션 내에 properties 정의된 모든 속성을 포함하는 개체입니다.

생성자

Name Description
RootProfilePropertySettingsCollection()

기본 설정을 사용하여 클래스의 새 인스턴스를 RootProfilePropertySettingsCollection 초기화합니다.

속성

Name Description
AddElementName

파생 클래스에서 ConfigurationElement 재정의 ConfigurationElementCollection 될 때 추가 작업과 연결할 이름을 가져오거나 설정합니다.

(다음에서 상속됨 ConfigurationElementCollection)
AllKeys

컬렉션에 포함된 모든 ProfileSection 개체의 이름을 포함하는 배열을 반환합니다.

(다음에서 상속됨 ProfilePropertySettingsCollection)
AllowClear

clear> 요소가 개체로 ProfilePropertySettings 유효한지 여부를 <나타내는 값을 가져옵니다.

(다음에서 상속됨 ProfilePropertySettingsCollection)
ClearElementName

파생 클래스에서 ConfigurationElement 재정의 ConfigurationElementCollection 될 때 clear 연산과 연결할 이름을 가져오거나 설정합니다.

(다음에서 상속됨 ConfigurationElementCollection)
CollectionType

의 형식을 가져옵니다 ConfigurationElementCollection.

(다음에서 상속됨 ConfigurationElementCollection)
Count

컬렉션의 요소 수를 가져옵니다.

(다음에서 상속됨 ConfigurationElementCollection)
CurrentConfiguration

현재 Configuration 인스턴스가 속한 구성 계층 구조를 나타내는 최상위 ConfigurationElement 인스턴스에 대한 참조를 가져옵니다.

(다음에서 상속됨 ConfigurationElement)
ElementInformation

개체의 ElementInformation 사용자 지정할 수 없는 정보 및 기능을 포함하는 개체를 ConfigurationElement 가져옵니다.

(다음에서 상속됨 ConfigurationElement)
ElementName

파생 클래스에서 재정의될 때 구성 파일에서 이 요소 컬렉션을 식별하는 데 사용되는 이름을 가져옵니다.

(다음에서 상속됨 ConfigurationElementCollection)
ElementProperty

ConfigurationElementProperty 개체 자체를 나타내는 개체를 ConfigurationElement 가져옵니다.

(다음에서 상속됨 ConfigurationElement)
EmitClear

컬렉션이 지워졌는지 여부를 지정하는 값을 가져오거나 설정합니다.

(다음에서 상속됨 ConfigurationElementCollection)
EvaluationContext

ContextInformation 개체에 대한 ConfigurationElement 개체를 가져옵니다.

(다음에서 상속됨 ConfigurationElement)
GroupSettings

ProfileGroupSettingsCollection 개체 컬렉션을 ProfileGroupSettings 포함하는 항목을 가져옵니다.

HasContext

속성CurrentConfiguration이 .인지 여부를 null 나타내는 값을 가져옵니다.

(다음에서 상속됨 ConfigurationElement)
IsSynchronized

컬렉션에 대한 액세스가 동기화되는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 ConfigurationElementCollection)
Item[ConfigurationProperty]

이 구성 요소의 속성 또는 특성을 가져오거나 설정합니다.

(다음에서 상속됨 ConfigurationElement)
Item[Int32]

지정된 인덱스 ProfilePropertySettings 위치에 있는 개체를 가져오거나 설정합니다.

(다음에서 상속됨 ProfilePropertySettingsCollection)
Item[String]

지정된 이름을 가진 ProfilePropertySettings 개체를 가져오거나 설정합니다.

(다음에서 상속됨 ProfilePropertySettingsCollection)
LockAllAttributesExcept

잠긴 특성의 컬렉션을 가져옵니다.

(다음에서 상속됨 ConfigurationElement)
LockAllElementsExcept

잠긴 요소의 컬렉션을 가져옵니다.

(다음에서 상속됨 ConfigurationElement)
LockAttributes

잠긴 특성의 컬렉션을 가져옵니다.

(다음에서 상속됨 ConfigurationElement)
LockElements

잠긴 요소의 컬렉션을 가져옵니다.

(다음에서 상속됨 ConfigurationElement)
LockItem

요소가 잠겨 있는지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 ConfigurationElement)
Properties

구성 속성의 컬렉션을 가져옵니다.

(다음에서 상속됨 ProfilePropertySettingsCollection)
RemoveElementName

파생 클래스에서 ConfigurationElement 재정의 ConfigurationElementCollection 될 때 제거 작업과 연결할 이름을 가져오거나 설정합니다.

(다음에서 상속됨 ConfigurationElementCollection)
SyncRoot

에 대한 액세스를 동기화하는 데 사용되는 개체를 ConfigurationElementCollection가져옵니다.

(다음에서 상속됨 ConfigurationElementCollection)
ThrowOnDuplicate

중복 개체를 만들려는 시도가 있을 경우 오류를 throw해야 하는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 ProfilePropertySettingsCollection)

메서드

Name Description
Add(ProfilePropertySettings)

컬렉션에 ProfilePropertySettings 개체를 추가합니다.

(다음에서 상속됨 ProfilePropertySettingsCollection)
BaseAdd(ConfigurationElement, Boolean)

구성 요소 컬렉션에 구성 요소를 추가합니다.

(다음에서 상속됨 ConfigurationElementCollection)
BaseAdd(ConfigurationElement)

에 구성 요소를 ConfigurationElementCollection추가합니다.

(다음에서 상속됨 ConfigurationElementCollection)
BaseAdd(Int32, ConfigurationElement)

구성 요소 컬렉션에 구성 요소를 추가합니다.

(다음에서 상속됨 ConfigurationElementCollection)
BaseClear()

컬렉션에서 모든 구성 요소 개체를 제거합니다.

(다음에서 상속됨 ConfigurationElementCollection)
BaseGet(Int32)

지정된 인덱스 위치에 있는 구성 요소를 가져옵니다.

(다음에서 상속됨 ConfigurationElementCollection)
BaseGet(Object)

지정된 키를 사용하여 구성 요소를 반환합니다.

(다음에서 상속됨 ConfigurationElementCollection)
BaseGetAllKeys()

에 포함된 모든 구성 요소에 대한 키 배열을 ConfigurationElementCollection반환합니다.

(다음에서 상속됨 ConfigurationElementCollection)
BaseGetKey(Int32)

지정된 인덱스 위치에 있는 ConfigurationElement 키를 가져옵니다.

(다음에서 상속됨 ConfigurationElementCollection)
BaseIndexOf(ConfigurationElement)

지정된 ConfigurationElement.의 인덱스입니다.

(다음에서 상속됨 ConfigurationElementCollection)
BaseIsRemoved(Object)

지정된 키를 가진 키가 .에서 ConfigurationElement제거되었는지 여부를 ConfigurationElementCollection 나타냅니다.

(다음에서 상속됨 ConfigurationElementCollection)
BaseRemove(Object)

컬렉션에서 A ConfigurationElement 를 제거합니다.

(다음에서 상속됨 ConfigurationElementCollection)
BaseRemoveAt(Int32)

지정된 인덱스 위치에서 제거합니다 ConfigurationElement .

(다음에서 상속됨 ConfigurationElementCollection)
Clear()

컬렉션에서 모든 ProfilePropertySettings 개체를 제거합니다.

(다음에서 상속됨 ProfilePropertySettingsCollection)
CopyTo(ConfigurationElement[], Int32)

배열의 내용을 복사합니다 ConfigurationElementCollection .

(다음에서 상속됨 ConfigurationElementCollection)
CreateNewElement()

파생 클래스에서 재정의되는 경우 새 ConfigurationElement클래스를 만듭니다.

(다음에서 상속됨 ProfilePropertySettingsCollection)
CreateNewElement(String)

파생 클래스에서 재정의될 때 새 ConfigurationElement 클래스를 만듭니다.

(다음에서 상속됨 ConfigurationElementCollection)
DeserializeElement(XmlReader, Boolean)

구성 파일에서 XML을 읽습니다.

(다음에서 상속됨 ConfigurationElement)
Equals(Object)

현재 RootProfilePropertySettingsCollection 개체를 다른 A RootProfilePropertySettingsCollection 개체와 비교합니다.

Get(Int32)

지정된 인덱스에서 ProfileSection 개체를 반환합니다.

(다음에서 상속됨 ProfilePropertySettingsCollection)
Get(String)

ProfileSection 지정된 이름을 가진 개체를 반환합니다.

(다음에서 상속됨 ProfilePropertySettingsCollection)
GetElementKey(ConfigurationElement)

지정된 구성 요소의 키를 가져옵니다.

(다음에서 상속됨 ProfilePropertySettingsCollection)
GetEnumerator()

IEnumerator 반복 ConfigurationElementCollection하는 데 사용되는 값을 가져옵니다.

(다음에서 상속됨 ConfigurationElementCollection)
GetHashCode()

컬렉션에 대한 해시 코드를 생성합니다.

GetKey(Int32)

지정된 인덱스 위치에 있는 이름을 ProfilePropertySettings 가져옵니다.

(다음에서 상속됨 ProfilePropertySettingsCollection)
GetTransformedAssemblyString(String)

지정된 어셈블리 이름의 변환된 버전을 반환합니다.

(다음에서 상속됨 ConfigurationElement)
GetTransformedTypeString(String)

지정된 형식 이름의 변환된 버전을 반환합니다.

(다음에서 상속됨 ConfigurationElement)
GetType()

현재 인스턴스의 Type 가져옵니다.

(다음에서 상속됨 Object)
IndexOf(ProfilePropertySettings)

지정 ProfilePropertySettings 한 개체의 인덱스 값을 반환합니다.

(다음에서 상속됨 ProfilePropertySettingsCollection)
Init()

개체를 ConfigurationElement 초기 상태로 설정합니다.

(다음에서 상속됨 ConfigurationElement)
InitializeDefault()

개체의 기본 값 집합을 ConfigurationElement 초기화하는 데 사용됩니다.

(다음에서 상속됨 ConfigurationElement)
IsElementName(String)

지정된 ConfigurationElement 값이 .에 ConfigurationElementCollection있는지 여부를 나타냅니다.

(다음에서 상속됨 ConfigurationElementCollection)
IsElementRemovable(ConfigurationElement)

지정된 ConfigurationElement 을 .에서 ConfigurationElementCollection제거할 수 있는지 여부를 나타냅니다.

(다음에서 상속됨 ConfigurationElementCollection)
IsModified()

파생 클래스에서 재정의될 때 마지막으로 저장되었거나 로드된 이후 수정되었는지 여부를 ConfigurationElementCollection 나타냅니다.

(다음에서 상속됨 ConfigurationElementCollection)
IsReadOnly()

개체가 ConfigurationElementCollection 읽기 전용인지 여부를 나타냅니다.

(다음에서 상속됨 ConfigurationElementCollection)
ListErrors(IList)

ConfigurationElement 개체 및 모든 하위 요소의 잘못된 속성 오류를 전달된 목록에 추가합니다.

(다음에서 상속됨 ConfigurationElement)
MemberwiseClone()

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
OnDeserializeUnrecognizedAttribute(String, String)

역직렬화하는 동안 알 수 없는 특성이 발생하는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 ConfigurationElement)
OnDeserializeUnrecognizedElement(String, XmlReader)

구성 파일에서 인식할 수 없는 구성 요소의 읽기를 처리하고 요소를 처리할 수 없는 경우 구성 시스템에서 예외를 throw합니다.

(다음에서 상속됨 ProfilePropertySettingsCollection)
OnRequiredPropertyNotFound(String)

필수 속성을 찾을 수 없는 경우 예외를 throw합니다.

(다음에서 상속됨 ConfigurationElement)
PostDeserialize()

역직렬화 후 호출됩니다.

(다음에서 상속됨 ConfigurationElement)
PreSerialize(XmlWriter)

serialization 전에 호출됩니다.

(다음에서 상속됨 ConfigurationElement)
Remove(String)

ProfilePropertySettings 컬렉션에서 개체를 제거합니다.

(다음에서 상속됨 ProfilePropertySettingsCollection)
RemoveAt(Int32)

컬렉션에서 지정된 인덱스 ProfilePropertySettings 위치에 있는 개체를 제거합니다.

(다음에서 상속됨 ProfilePropertySettingsCollection)
Reset(ConfigurationElement)

파생 클래스에서 재정의 ConfigurationElementCollection 될 때 수정되지 않은 상태로 다시 설정합니다.

(다음에서 상속됨 ConfigurationElementCollection)
ResetModified()

파생 클래스에서 재정의될 IsModified() 때 속성 값을 false 다시 설정합니다.

(다음에서 상속됨 ConfigurationElementCollection)
SerializeElement(XmlWriter, Boolean)

파생 클래스에서 재정의될 때 구성 파일의 XML 요소에 구성 데이터를 씁니다.

(다음에서 상속됨 ConfigurationElementCollection)
SerializeToXmlElement(XmlWriter, String)

파생 클래스에서 구현될 때 이 구성 요소의 외부 태그를 구성 파일에 씁니다.

(다음에서 상속됨 ConfigurationElement)
Set(ProfilePropertySettings)

컬렉션에 지정된 ProfilePropertySettings 개체를 추가합니다.

(다음에서 상속됨 ProfilePropertySettingsCollection)
SetPropertyValue(ConfigurationProperty, Object, Boolean)

속성을 지정된 값으로 설정합니다.

(다음에서 상속됨 ConfigurationElement)
SetReadOnly()

IsReadOnly() 개체 및 모든 하위 요소에 ConfigurationElementCollection 대한 속성을 설정합니다.

(다음에서 상속됨 ConfigurationElementCollection)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)
Unmerge(ConfigurationElement, ConfigurationElement, ConfigurationSaveMode)

구성 정보를 다른 수준의 구성 계층 구조에서 병합하는 효과를 반전합니다.

(다음에서 상속됨 ConfigurationElementCollection)

명시적 인터페이스 구현

Name Description
ICollection.CopyTo(Array, Int32)

배열에 ConfigurationElementCollection 복사합니다.

(다음에서 상속됨 ConfigurationElementCollection)

확장명 메서드

Name Description
AsParallel(IEnumerable)

쿼리의 병렬 처리를 사용하도록 설정합니다.

AsQueryable(IEnumerable)

IEnumerable IQueryable변환합니다.

Cast<TResult>(IEnumerable)

IEnumerable 요소를 지정된 형식으로 캐스팅합니다.

OfType<TResult>(IEnumerable)

지정된 형식에 따라 IEnumerable 요소를 필터링합니다.

적용 대상

추가 정보