HttpContext.Profile Property

Note: This property is new in the .NET Framework version 2.0.

Gets the ProfileBase object for the current user profile.

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

public ProfileBase Profile { get; }
/** @property */
public ProfileBase get_Profile ()

public function get Profile () : ProfileBase

Property Value

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.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0