log4net SDK Reference

WindowsSecurityContext Class

Impersonate a Windows Account

For a list of all members of this type, see WindowsSecurityContext Members.

System.Object
   log4net.Core.SecurityContext
      log4net.Util.WindowsSecurityContext

[Visual Basic]
Public Class WindowsSecurityContext
    Inherits SecurityContext
    Implements IOptionHandler
[C#]
public class WindowsSecurityContext : SecurityContext, IOptionHandler

Thread Safety

This type is not safe for multithreaded operations.

Remarks

This SecurityContext impersonates a Windows account.

How the impersonation is done depends on the value of Impersonate. This allows the context to either impersonate a set of user credentials specified using username, domain name and password or to revert to the process credentials.

Requirements

Namespace: log4net.Util

Assembly: log4net (in log4net.dll)

See Also

WindowsSecurityContext Members | log4net.Util Namespace