System.Web.Hosting.HostingEnvironment.Impersonate Method

Impersonates the user represented by the application identity.

Syntax

public static IDisposable Impersonate ()

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

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Web.Hosting
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0