IdentitySection::Impersonate Property
Gets or sets a value indicating whether client impersonation is used on each request.
Assembly: System.Web (in System.Web.dll)
[ConfigurationPropertyAttribute(L"impersonate", DefaultValue = false)] public: property bool Impersonate { bool get (); void set (bool value); }
Property Value
Type: System::Booleantrue if client impersonation is used; otherwise, false. The default value is false.
If the Impersonate property is set to true, each request is served by a Web application impersonating its client. That is, either the user currently logged on or the user specified by the UserName and Password properties. When the Impersonate property is set to false, the application does not impersonate any client user.
The following code example shows how to access the Impersonate property. Refer to the code example of the IdentitySection class to learn how to access the section.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note