WindowsSecurityContextCredentials Property Apache log4net™ SDK Documentation
Gets or sets the impersonation mode for this security context

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

public WindowsSecurityContextImpersonationMode Credentials { get; set; }

Property Value

Type: WindowsSecurityContextImpersonationMode
The impersonation mode for this security context
Remarks

Impersonate either a user with user credentials or revert this thread to the credentials of the process. The value is one of the WindowsSecurityContextImpersonationMode enum.

The default value is User

When the mode is set to User the user's credentials are established using the UserName, DomainName and Password values.

When the mode is set to Process no other properties need to be set. If the calling thread is impersonating then it will be reverted back to the process credentials.

See Also

Reference