편집

다음을 통해 공유


AnonymousIdentificationSection.Enabled Property

Definition

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

public:
 property bool Enabled { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("enabled", DefaultValue=false)]
public bool Enabled { get; set; }
[<System.Configuration.ConfigurationProperty("enabled", DefaultValue=false)>]
member this.Enabled : bool with get, set
Public Property Enabled As Boolean

Property Value

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

Attributes

Examples

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

Remarks

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

Applies to