WindowsImpersonationContext

WindowsImpersonationContext

System.Security.Principal (mscorlib.dll)class
public class WindowsImpersonationContext { // Public Instance Methods    public void Undo(  ); // Protected Instance Methods    protected override void Finalize(  );         // overrides object }

The WindowsImpersonationContext class represents the active Windows user prior to code impersonating another Windows user through a call to the WindowsIdentity.Impersonate( ) method. The WindowsIdentity.Impersonate( ) method returns a WindowsImpersonationContext object. By calling the Undo( ) method of this object, the thread access token reverts to the one contained in the WindowsImpersonationContext object.

Returned By

WindowsIdentity.Impersonate( )



Programming. NET Security
Programming .Net Security
ISBN: 0596004427
EAN: 2147483647
Year: 2005
Pages: 346

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net