This documentation is archived and is not being maintained.

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 */
public ProfileBase get_Profile ()

public function get Profile () : ProfileBase

Not applicable.

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 Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0