ProfileManager.Enabled Property


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

Gets a value indicating whether the user profile is enabled for the application.

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

public static bool Enabled { get; }

Property Value

Type: System.Boolean

true if the user profile is enabled; otherwise, false. The default is false.

The user profile is enabled for an application using the enabled attribute of the configuration element.

The following code example shows the element in the section of the Web.config file for an ASP.NET application where the user profile has been enabled.

<profile enabled="true" defaultProvider="SqlProvider">
    <add name="SqlProvider"
      applicationName="MyApplication" />

.NET Framework
Available since 2.0
Return to top