RootProfilePropertySettingsCollection.GroupSettings Property

Definition

Gets a ProfileGroupSettingsCollection containing a collection of ProfileGroupSettings objects.

C#
[System.Configuration.ConfigurationProperty("group")]
public System.Web.Configuration.ProfileGroupSettingsCollection GroupSettings { get; }

Property Value

A ProfileGroupSettingsCollection collection.

Attributes

Examples

The following code example shows how to use the GroupSettings property. This code example is part of a larger example provided for the ProfileSection class.

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

Remarks

The GroupSettings property allows you to create groups of ProfilePropertySettingsCollection collections.

Applies to

제품 버전
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also