Impersonates the user represented by the specified user token.
Syntax
Parameters
- token
-
The handle of a Windows account token.
Returns
An IDisposable object that represents the Windows user prior to impersonation; this object can be used to revert to the original user's context.
Remarks
Requirements
Namespace: System.Web.Hosting
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0