WindowsSecurityContext Impersonate Method Apache log4net™ SDK Documentation
Impersonate the Windows account specified by the UserName and DomainName properties.

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

public override IDisposable Impersonate(
	Object state
)

Return Value

Type: OnlineIDisposable
An OnlineIDisposable 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