[This is preliminary documentation and subject to change.]
Impersonate the Windows account specified by the UserName and DomainName properties.
An IDisposable instance that will revoke the impersonation of this SecurityContext
Depending on the Credentials property either impersonate a user using credentials supplied or revert to the process credentials.
WindowsSecurityContext Class | log4net.Util Namespace