HttpContext::Profile Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the ProfileBase object for the current user profile.

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

property ProfileBase^ Profile {
	ProfileBase^ 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