Impersonate Method

HostingEnvironment.Impersonate Method

 

Allows code to impersonate a different user.

Namespace:   System.Web.Hosting
Assembly:  System.Web (in System.Web.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticImpersonate()

Impersonates the user represented by the application identity.

System_CAPS_pubmethodSystem_CAPS_staticImpersonate(IntPtr)

Impersonates the user represented by the specified user token.

System_CAPS_pubmethodSystem_CAPS_staticImpersonate(IntPtr, String)

Impersonates the user specified by the configuration settings for the specified virtual path, or the specified user token.

Return to top
Show:
© 2016 Microsoft