Profile Property

HttpContext.Profile Property


Gets the ProfileBase object for the current user profile.

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

public ProfileBase Profile { get; }

Property Value

Type: System.Web.Profile.ProfileBase

A ProfileBase if the application configuration file contains a definition for the profile's properties; otherwise, null.

A Profile property is used for persistent storage of structured data using a type-safe API. When a Profile property is accessed but no value is present, an empty instance is returned; null is not returned.

.NET Framework
Available since 2.0
Return to top
© 2015 Microsoft