IdentitySection.Impersonate プロパティ
アセンブリ: System.Web (system.web.dll 内)
構文
Dim instance As IdentitySection Dim value As Boolean value = instance.Impersonate instance.Impersonate = value
/** @property */ public boolean get_Impersonate () /** @property */ public void set_Impersonate (boolean value)
クライアントの偽装を使用する場合は true。それ以外の場合は false。既定値は false です。
Impersonate プロパティを true に設定した場合、Web アプリケーションでは各要求でクライアントを偽装します。この場合のクライアントとは、現在ログオンしているユーザー、または UserName プロパティおよび Password プロパティで指定されるユーザーです。Impersonate プロパティを false に設定した場合、クライアント ユーザーは偽装されません。
メモ |
---|
セキュリティ上の理由から、identity セクションでは、暗号化された UserName および Password の格納をサポートします。 |
Impersonate プロパティへのアクセス方法を次のコード例に示します。セクションにアクセスする方法については、IdentitySection クラスのトピックにあるコード例を参照してください。
' Get the Impersonate property value. Dim currentImpersonate As Boolean = identitySection.Impersonate ' Set the Impersonate property to true. identitySection.Impersonate = True
// Get the Impersonate property value. bool currentImpersonate = identitySection.Impersonate; // Set the Impersonate property to true. identitySection.Impersonate = true;
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
- IdentitySection.Impersonate プロパティのページへのリンク