Freigeben über


AnonymousIdentificationSection.Enabled Eigenschaft

Definition

Dient zum Abrufen oder Festlegen eines Werts, der angibt, ob die anonyme Identifikation aktiviert ist.

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

Eigenschaftswert

truewenn die anonyme Identifizierung aktiviert ist; andernfalls . false Der Standardwert lautet false.

Attribute

Beispiele

Das folgende Codebeispiel zeigt, wie Sie auf die Enabled Eigenschaft zugreifen.

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

Hinweise

Wenn Enabled diese Einstellung festgelegt trueist, wird ein Cookie verwendet, um die Statusinformationen des Benutzers zu verwalten.

Gilt für: