AnonymousIdentificationModule.Enabled Propiedad

Definición

Obtiene un valor que indica si la identificación anónima está habilitada para la aplicación 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 de propiedad

true si la identificación anónima está habilitada para la aplicación ASP.NET; de lo contrario, false. De manera predeterminada, es false.

Ejemplos

En el ejemplo de código siguiente se muestra un archivo Web.config para una aplicación que habilita la identificación 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>  

Se aplica a