ProfilePropertySettingsCollection Class
Assembly: System.Web (in system.web.dll)
'Declaration Public Class ProfilePropertySettingsCollection Inherits ConfigurationElementCollection 'Usage Dim instance As ProfilePropertySettingsCollection
public class ProfilePropertySettingsCollection extends ConfigurationElementCollection
public class ProfilePropertySettingsCollection extends ConfigurationElementCollection
Not applicable.
The profile section of the configuration file specifies a schema for user profiles. At run time, the ASP.NET compilation system uses the information specified in the profile section to generate a class called ProfileCommon, which is derived from ProfileBase. The ProfileCommon class definition is based on the properties defined in the properties subsection of the profile section of the configuration file. An instance of this class is created for each user profile, and you can access the individual profile values in your code through the Profile property. For more information about profile properties, see Understanding ASP.NET Profile Properties. For more information about the profile features added to ASP.NET 2.0, see ASP.NET Profile Properties.
The following code example shows how to use the PropertySettings property, which is an instance of the ProfilePropertySettingsCollection class. This code example is part of a larger example provided for the ProfileSection class.
' 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
System.Configuration.ConfigurationElement
System.Configuration.ConfigurationElementCollection
System.Web.Configuration.ProfilePropertySettingsCollection
System.Web.Configuration.RootProfilePropertySettingsCollection