Gets or sets the impersonation mode for this security context
Namespace: log4net.UtilAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
public WindowsSecurityContext..::..ImpersonationMode Credentials { get; set; }
public WindowsSecurityContext..::..ImpersonationMode Credentials { get; set; }
Public Property Credentials As WindowsSecurityContext..::..ImpersonationMode
Get
Set
Public Property Credentials As WindowsSecurityContext..::..ImpersonationMode
Get
Set
public:
property WindowsSecurityContext..::..ImpersonationMode Credentials {
WindowsSecurityContext..::..ImpersonationMode get ();
void set (WindowsSecurityContext..::..ImpersonationMode value);
}
public:
property WindowsSecurityContext..::..ImpersonationMode Credentials {
WindowsSecurityContext..::..ImpersonationMode get ();
void set (WindowsSecurityContext..::..ImpersonationMode value);
}
Property Value
Type:
WindowsSecurityContext ImpersonationMode
The impersonation mode for this security context
Impersonate either a user with user credentials or
revert this thread to the credentials of the process.
The value is one of the WindowsSecurityContext ImpersonationMode
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.