This documentation is archived and is not being maintained.

HostingEnvironment.Impersonate Method

Allows code to impersonate a different user.

Name Description
HostingEnvironment.Impersonate ()
Impersonates the user represented by the application identity.
HostingEnvironment.Impersonate (IntPtr)
Impersonates the user represented by the specified user token.
HostingEnvironment.Impersonate (IntPtr, String)
Impersonates the user specified by the configuration settings for the specified virtual path, or the specified user token.
Show: