HostingEnvironment::Impersonate Method
.NET Framework (current version)
Allows code to impersonate a different user.
Assembly: System.Web (in System.Web.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Impersonate() | Impersonates the user represented by the application identity. |
![]() ![]() | Impersonate(IntPtr) | Impersonates the user represented by the specified user token. |
![]() ![]() | Impersonate(IntPtr, String^) | Impersonates the user specified by the configuration settings for the specified virtual path, or the specified user token. |
Show:

