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
Samarbeid med oss på GitHub
Du finner kilden for dette innholdet på GitHub. Der du også kan opprette og se gjennom problemer og pull-forespørsler. Hvis du vil ha mer informasjon, kan du se vår bidragsyterveiledning.