System.Web.Profile.ProfileBase Class

Provides untyped access to profile property values and information.

See Also: ProfileBase Members


public class ProfileBase : System.Configuration.SettingsBase


ASP.NET uses the System.Web.Profile.ProfileBase class to create the class used for the user profile. When an application that has the user profile enabled is started, ASP.NET creates a new class of type ProfileCommon, which inherits from the System.Web.Profile.ProfileBase class. Strongly typed accessors are added to the ProfileCommon class for each property defined in the profile configuration section. The strongly typed accessors of the ProfileCommon class call the ProfileBase.GetPropertyValue(string) and ProfileBase.SetPropertyValue(string, object) methods of the System.Web.Profile.ProfileBase base class to retrieve and set profile property values, respectively. An instance of the ProfileCommon class is set as the value of the System.Web.HttpContext.Profile property for the ASP.NET application.

To create an instance of a user profile in an ASP.NET application, it is recommended that you use the erload:System.Web.Profile.ProfileBase.Create method.


Namespace: System.Web.Profile
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0