AnonymousIdentificationSection.Enabled Eigenschap

Definitie

Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of anonieme identificatie is ingeschakeld.

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

Waarde van eigenschap

true indien anonieme identificatie is ingeschakeld; anders, false. De standaardwaarde is false.

Kenmerken

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u toegang hebt tot de Enabled eigenschap.

   // 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())

Opmerkingen

Als Enabled deze optie is ingesteld true, wordt er een cookie gebruikt om de statusgegevens van de gebruiker te beheren.

Van toepassing op