AnonymousIdentificationSection.Enabled Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.