Impersonate the Windows account specified by the UserName and DomainName properties.
Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
Parameters
- state
- Type: SystemObject
caller provided state
Return Value
Type: IDisposableAn IDisposable instance that will revoke the impersonation of this SecurityContext
Remarks
Depending on the Credentials property either impersonate a user using credentials supplied or revert to the process credentials.
See Also