Export (0) Print
Expand All

HttpContext.Profile Property

Gets the ProfileBase object for the current user profile.

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

member Profile : ProfileBase with get

Property Value

Type: System.Web.Profile.ProfileBase
A ProfileBase if the application configuration file contains a definition for the profile's properties; otherwise, a null reference (Nothing in Visual Basic).

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; a null reference (Nothing in Visual Basic) is not returned.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft