Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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 =
    anonymousIdentificationSection.Enabled;

Console.WriteLine("Anonymous identification enabled: {0}",
    aIdEnabled.ToString());

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft