Share via


AnonymousIdentificationSection.Enabled Propriété

Définition

Obtient ou définit une valeur indiquant si l'identification anonyme est activée.

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

Valeur de propriété

true si l'identification anonyme est activée ; sinon false. La valeur par défaut est false.

Attributs

Exemples

L'exemple de code suivant illustre l'accès à la propriété Enabled.

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

Remarques

Si Enabled est défini sur true, un cookie est utilisé pour gérer les informations d’état de l’utilisateur.

S’applique à