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 Property Enabled As Boolean

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.
Dim aIdEnabled As Boolean = _
anonymousIdentificationSection.Enabled
Console.WriteLine("Anonymous identification enabled: {0}", _
aIdEnabled.ToString())

.NET Framework
Available since 2.0
Return to top
Show: