Impersonate the Windows account specified by the UserName and DomainName properties.
Namespace: log4net.UtilAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax
Parameters
- state
- Type: System Object
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