Enabled Property

AnonymousIdentificationSection.Enabled Property


Gets or sets a value indicating whether anonymous identification is enabled.

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

[ConfigurationPropertyAttribute("enabled", DefaultValue = false)]
public bool Enabled { get; set; }

Property Value

Type: System.Boolean

true if anonymous identification is enabled; otherwise, false. The default is false.

If Enabled is set to true, a cookie is used to manage the user's state information.

The following code example shows how to access the Enabled property.

// Get Enabled.
bool aIdEnabled =

Console.WriteLine("Anonymous identification enabled: {0}",

.NET Framework
Available since 2.0
Return to top
© 2016 Microsoft