WindowsSecurityContextImpersonate 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: 2.0.8.0-.NET 4.0
Syntax

public override IDisposable Impersonate(
	Object state
)

Parameters

state
Type: SystemObject
caller provided state

Return Value

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

Reference