Last updated: 2006-09-18

This website is based on NLog v1.0. Click here to view the documentation for other versions.

ImpersonatingWrapper Target


A target wrapper that impersonates another user for the duration of the write.

AssemblyClass.NET Framework.NET CFMono on WindowsMono on Unix
1.01.12.01.02.01.02.01.02.0
NLog.dllNLog.Targets.Wrappers.ImpersonatingTargetWrapper    

Parameters (blue fields are required):

NameTypeDescription
namestring
The name of the target.
domainstring
Windows domain name to change context to.

Default value is: ..

impersonationLevelSecurityImpersonationLevel
Impersonation level.

Possible values are:

  • Anonymous - Anonymous
  • Identification - Identification
  • Impersonation - Impersonation
  • Delegation - Delegation

logonProviderLogonProviderType
Logon Provider.

Possible values are:

  • Default - Use the standard logon provider for the system.

logonTypeSecurityLogonType
Logon Type.

Possible values are:

  • Interactive - Interactive Logon
  • Network - Network Logon
  • Batch - Batch Logon
  • Service - Logon as a Service
  • NetworkClearText - Network Clear Text Logon
  • NewCredentials - New Network Credentials

passwordstring
Password
revertToSelfboolean
Revert to the credentials of the process instead of impersonating another user.

Default value is: False.

usernamestring
Username to change context to
wrappedTargetTarget
The target that this target wraps.

Back to the target list.
Webwww.nlog-project.org