AnonymousIdentificationModule.Enabled Propriedade

Definição

Obtém um valor que indica se a identificação anônima está habilitada para o aplicativo ASP.NET.

public:
 static property bool Enabled { bool get(); };
public static bool Enabled { get; }
static member Enabled : bool
Public Shared ReadOnly Property Enabled As Boolean

Valor da propriedade

true se a identificação anônima estiver habilitada para o aplicativo ASP.NET; caso contrário, false. O padrão é false.

Exemplos

O exemplo de código a seguir mostra um arquivo Web.config para um aplicativo que habilita a identificação anônima.

<configuration>
  <system.web>
    <authentication mode="Forms" >
      <forms loginUrl="login.aspx" name=".ASPXFORMSAUTH" />
    </authentication>

    <anonymousIdentification enabled="true" />

    <profile defaultProvider="AspNetSqlProvider">
      <properties>
        <add name="ZipCode" allowAnonymous="true" />
        <add name="CityAndState" allowAnonymous="true" />
        <add name="StockSymbols" type="System.Collections.ArrayList"
          allowAnonymous="true" />
      </properties>
    </profile>
  </system.web>
</configuration>

Aplica-se a