NullSecurityContext ClassApache log4net™ SDK Documentation
A SecurityContext used when a SecurityContext is not required
Inheritance Hierarchy

SystemObject
  log4net.CoreSecurityContext
    log4net.UtilNullSecurityContext

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

public sealed class NullSecurityContext : SecurityContext

The NullSecurityContext type exposes the following members.

Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodImpersonate
Impersonate this SecurityContext
(Overrides SecurityContextImpersonate(Object).)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields

  NameDescription
Public fieldStatic memberInstance
Singleton instance of NullSecurityContext
Top
Remarks

The NullSecurityContext is a no-op implementation of the SecurityContext base class. It is used where a SecurityContext is required but one has not been provided.

See Also

Reference