다음을 통해 공유


RootProfilePropertySettingsCollection.GroupSettings 속성

정의

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

public:
 property System::Web::Configuration::ProfileGroupSettingsCollection ^ GroupSettings { System::Web::Configuration::ProfileGroupSettingsCollection ^ get(); };
[System.Configuration.ConfigurationProperty("group")]
public System.Web.Configuration.ProfileGroupSettingsCollection GroupSettings { get; }
[<System.Configuration.ConfigurationProperty("group")>]
member this.GroupSettings : System.Web.Configuration.ProfileGroupSettingsCollection
Public ReadOnly Property GroupSettings As ProfileGroupSettingsCollection

속성 값

컬렉션입니다 ProfileGroupSettingsCollection .

특성

예제

다음 코드 예제에서는 속성을 사용 하는 방법을 보여 있습니다 GroupSettings . 이 코드 예제는 클래스에 제공된 더 큰 예제의 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

설명

GroupSettings 속성을 사용하면 컬렉션 그룹을 ProfilePropertySettingsCollection 만들 수 있습니다.

적용 대상

추가 정보