HostingEnvironment.Impersonate Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: