AnonymousIdentificationSection.Enabled Propriedade

Definição

Recebe ou define um valor que indica se a identificação anónima está ativada.

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

Valor de Propriedade

true se a identificação anónima estiver ativada; caso contrário, false. A predefinição é false.

Atributos

Exemplos

O seguinte exemplo de código mostra como aceder à Enabled propriedade.

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

Observações

Se Enabled for definido para true, é usado um cookie para gerir a informação de estado do utilizador.

Aplica-se a