WindowsImpersonationContext::Undo Method ()
.NET Framework (current version)
Reverts the user context to the Windows user represented by this object.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| SecurityException | An attempt is made to use this method for any purpose other than to revert identity to self. |
Notes to Implementers:
Because Microsoft Windows 98 and Windows Millennium Edition platforms do not have users or user tokens, impersonation cannot take place on those platforms.
.NET Framework
Available since 1.1
Available since 1.1
Show: