System.Web 2.0.0.0 System.Configuration.ConfigurationSection

The class provides a way to programmatically access and modify the content of the configuration file profile section. 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 . The ProfileCommon class definition is based on the properties defined in the profile section of the configuration file. The class allows you to access and modify the values for individual profiles. An instance of this class is created for each user profile, and you can access the individual profile values in your code through the property. For more information about the profile features added to vstecasplong, see ASP.NET Profile Properties Overview.

The class provides a way to programmatically access and modify the profile section of a configuration file. This class cannot be inherited.

- Constructor

  The following table shows the default settings that are used for this constructor.

  Setting

  Default Value

  "AspNetSqlProfileProvider".

  true.

  An empty string ("").

  An empty .

  An empty .

  Initializes a new instance of the class using default settings.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("automaticSaveEnabled", DefaultValue=true)
  System.Boolean To be added.

  When the property is false, changes to individual profiles are not saved unless the method of the ProfileCommon class is called in code. When the property is true, the event also allows code to override the automatic save behavior.

  Gets or sets a value that determines whether changes to user-profile information are automatically saved on page exit.

  2.0.0.0
- Property
  System.Configuration.StringValidator(MinLength=1)
  System.Configuration.ConfigurationProperty("defaultProvider", DefaultValue="AspNetSqlProfileProvider")
  System.String To be added.

  A profile provider points to a data source in which user profile values are stored. You can specify profile providers in the providers subsection of the profile section of a configuration file.

  Gets or sets the name of the default profile provider.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("enabled", DefaultValue=true)
  System.Boolean To be added.

  When the property is false, the profile feature is disabled, and you will not be able to access user-profile information from your ASP.NET code.

  When the property is true, 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 .

  Gets or sets a value indicating whether the ASP.NET profile feature is enabled.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("inherits", DefaultValue="")
  System.String To be added.

  At run time, the ASP.NET compilation system uses the information specified in the profile section of the configuration to generate a class called ProfileCommon, which is derived from . To customize the information this class provides, you can set the property to the name of a type you create that derives from , and the compilation system will use this custom type as the base class for ProfileCommon.

  If you provide a type reference in the property, you can define properties in your custom types that are not defined with a property element.

  For more information about the profile features added to vstecasplong, see ASP.NET Profile Properties Overview.

  Gets or sets a type reference for a custom type derived from .

  2.0.0.0
- Property
  System.Configuration.ConfigurationPropertyCollection To be added. To be added.

  Gets the properties collection for the object.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("properties")
  System.Web.Configuration.RootProfilePropertySettingsCollection To be added.

  The property is a that provides a collection of objects and a collection of objects, each of which provides a named collection of other objects. These collections are used by the ASP.NET compilation engine to dynamically generate a class called ProfileCommon, which is derived from . The properties of the ProfileCommon class consist of the properties defined in the two collections. In addition, each group property of the ProfileCommon class will contain its own properties, as defined for that group.

  Gets a collection of objects.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("providers")
  System.Configuration.ProviderSettingsCollection To be added.

  A profile provider points to a data source in which user profile values are stored. You can specify profile providers in the providers subsection of the profile section of a configuration file.

  Gets a collection of objects.

  2.0.0.0