RootProfilePropertySettingsCollection.GroupSettings Property
.NET Framework (current version)
Gets a ProfileGroupSettingsCollection containing a collection of ProfileGroupSettings objects.
Assembly: System.Web (in System.Web.dll)
[ConfigurationPropertyAttribute("group")] public ProfileGroupSettingsCollection GroupSettings { get; }
Property Value
Type: System.Web.Configuration.ProfileGroupSettingsCollectionA ProfileGroupSettingsCollection collection.
The GroupSettings property allows you to create groups of ProfilePropertySettingsCollection collections.
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.
// 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); } }
.NET Framework
Available since 2.0
Available since 2.0
Show: