AnonymousIdentificationModule 클래스

정의

ASP.NET 애플리케이션의 익명 식별자를 관리합니다.

public ref class AnonymousIdentificationModule sealed : System::Web::IHttpModule
public sealed class AnonymousIdentificationModule : System.Web.IHttpModule
type AnonymousIdentificationModule = class
    interface IHttpModule
Public NotInheritable Class AnonymousIdentificationModule
Implements IHttpModule
상속
AnonymousIdentificationModule
구현

예제

다음 코드 예제에서는 익명 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>  

설명

AnonymousIdentificationModule 클래스를 만들고 ASP.NET 애플리케이션에 대 한 익명 식별자를 관리 합니다. 익명 식별자는 ASP.NET System.Web.Profile와 같은 익명 식별을 지원하는 기능에 사용됩니다.

AnonymousIdentificationModule 익명 식별자를 사용자 지정 값으로 설정할 수 있는 이벤트를 노출 Creating 합니다. 사용자 지정 익명 식별자 값을 지정하지 않으면 가 Guid 사용됩니다.

합니다 Creating 라는 서브루틴을 지정 하 여 액세스 하는 이벤트 AnonymousIdentification_Creating ASP.NET 애플리케이션의 Global.asax 파일에 있습니다.

AnonymousIdentificationModuleanonymousIdentification 구성 요소true의 사용 특성을 로 설정하여 익명 식별 Enabled 이 인 경우에만 사용됩니다.

참고

익명 식별은 모든 유형의 ASP.NET 인증과 독립적입니다.

생성자

AnonymousIdentificationModule()

AnonymousIdentificationModule 클래스의 인스턴스를 만듭니다.

속성

Enabled

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

메서드

ClearAnonymousIdentifier()

세션과 연결된 익명 쿠키나 식별자를 지웁니다.

Dispose()

AnonymousIdentificationModule에서 사용하는 모든 리소스(메모리 제외)를 해제합니다.

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
Init(HttpApplication)

초기화는 AnonymousIdentificationModule 개체입니다.

MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

이벤트

Creating

새 익명 식별자를 만들 때 발생합니다.

적용 대상