AnonymousIdentificationModule.Enabled 속성

정의

ASP.NET 애플리케이션에 익명 ID를 사용할 수 있는지 여부를 나타내는 값을 가져옵니다.

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

속성 값

Boolean

ASP.NET 애플리케이션에 익명 ID를 사용할 수 있으면 true이고, 그렇지 않으면 false입니다. 기본값은 false입니다.

예제

다음 코드 예제에서는 익명 id를 사용 하도록 설정 하는 애플리케이션에 대 한 Web.config 파일을 보여 줍니다.

<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>  

적용 대상