다음을 통해 공유


IdentitySection.Impersonate 속성

정의

각 요청에 클라이언트 가장을 사용할지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 property bool Impersonate { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("impersonate", DefaultValue=false)]
public bool Impersonate { get; set; }
[<System.Configuration.ConfigurationProperty("impersonate", DefaultValue=false)>]
member this.Impersonate : bool with get, set
Public Property Impersonate As Boolean

속성 값

클라이언트 가장이 사용되면 true이고, 그렇지 않으면 false입니다. 기본값은 false입니다.

특성

예제

다음 코드 예제에서는 Impersonate 속성에 액세스하는 방법을 보여 줍니다. 코드 예제를 참조 하십시오는 IdentitySection 클래스 섹션에 액세스 하는 방법을 알아봅니다.

// Get the Impersonate property value.
bool currentImpersonate = identitySection.Impersonate;

// Set the Impersonate property to true.
identitySection.Impersonate = true;
' Get the Impersonate property value.
Dim currentImpersonate As Boolean = identitySection.Impersonate

' Set the Impersonate property to true.
identitySection.Impersonate = True

설명

경우는 Impersonate 속성이 true, 해당 클라이언트를 가장 하는 웹 애플리케이션에서 각 요청을 처리 합니다. 즉, 현재 로그온 한 사용자 또는 사용자 지정 된 된 UserNamePassword 속성입니다. 경우는 Impersonate 속성이 false, 애플리케이션 클라이언트 사용자를 가장 하지 않습니다.

참고

보안상의 이유로 ID 섹션은 암호화된 UserNamePassword의 스토리지를 지원합니다.

적용 대상

추가 정보