AnonymousIdentificationModule.Enabled 속성

정의

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

속성 값

ASP.NET 애플리케이션에 대해 익명 식별을 사용하도록 설정하면 true, 그렇지 않으면 false. 기본값은 false입니다.

예제

다음 코드 예제에서는 익명 식별을 사용 하는 애플리케이션에 대 한 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>

적용 대상