Share via


ProfileGroupSettings.PropertySettings 속성

정의

이 개체에 포함된 프로필 속성 설정의 컬렉션을 가져옵니다.

public:
 property System::Web::Configuration::ProfilePropertySettingsCollection ^ PropertySettings { System::Web::Configuration::ProfilePropertySettingsCollection ^ get(); };
[System.Configuration.ConfigurationProperty("", IsDefaultCollection=true)]
public System.Web.Configuration.ProfilePropertySettingsCollection PropertySettings { get; }
[<System.Configuration.ConfigurationProperty("", IsDefaultCollection=true)>]
member this.PropertySettings : System.Web.Configuration.ProfilePropertySettingsCollection
Public ReadOnly Property PropertySettings As ProfilePropertySettingsCollection

속성 값

ProfilePropertySettingsCollection

이 그룹에 포함된 모든 ProfilePropertySettingsCollection 개체가 들어 있는 ProfilePropertySettings 컬렉션입니다.

특성

예제

다음 코드 예제에서는 PropertySettings 속성을 사용하는 방법을 보여 줍니다. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 ProfileSection 클래스입니다.

// 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);
    }
}
' 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

적용 대상

추가 정보