ProfileGroupSettings.PropertySettings Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the collection of profile property settings this object contains.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute("", IsDefaultCollection = true)]
public ProfilePropertySettingsCollection PropertySettings { get; }

Property Value

Type: System.Web.Configuration.ProfilePropertySettingsCollection

A ProfilePropertySettingsCollection collection that contains all the ProfilePropertySettings objects contained in this group.

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

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

.NET Framework
Available since 2.0
Return to top