SecurityContext Class | Apache log4net™ SDK Documentation

A SecurityContext used by log4net when interacting with protected resources
Inheritance Hierarchy

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

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

C#
VB
C++
F#
Copy

    public abstract class SecurityContext

    Public MustInherit Class SecurityContext

    public ref class SecurityContext abstract

    [<AbstractClassAttribute>]
    type SecurityContext =  class end

The SecurityContext type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| SecurityContext | Initializes a new instance of the SecurityContext class

Top
Methods

| Name | Description
--- | --- | ---
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.)
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| Impersonate | Impersonate this SecurityContext
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.)
| ToString | Returns a String that represents the current Object. (Inherited from Object.)

Top
Remarks

A SecurityContext used by log4net when interacting with protected resources for example with operating system services. This can be used to impersonate a principal that has been granted privileges on the system resources.

See Also

#### Reference

log4net.Core Namespace