Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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

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