AnonymousIdentificationSection.Enabled Propriedade
Definição
Obtém ou define um valor que indica se a identificação anônima está habilitada.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=Mono.Cecil.CustomAttributeArgument)]
public bool Enabled { get; set; }
[<System.Configuration.ConfigurationProperty("enabled", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.Enabled : bool with get, set
Public Property Enabled As Boolean
Valor da propriedade
true se a identificação anônima estiver habilitada; caso contrário, false .true if anonymous identification is enabled; otherwise, false. O padrão é false.The default is false.
- Atributos
Exemplos
O exemplo de código a seguir mostra como acessar a Enabled propriedade.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())
Comentários
Se Enabled é definido como true , um cookie é usado para gerenciar as informações de estado do usuário.If Enabled is set to true, a cookie is used to manage the user's state information.