NullSecurityContext Class | Apache log4net™ SDK Documentation

A SecurityContext used when a SecurityContext is not required
Inheritance Hierarchy

System
Object
log4net.Core
SecurityContext
log4net.Util
NullSecurityContext

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

C#
VB
C++
F#
Copy

    public sealed class NullSecurityContext : SecurityContext

    Public NotInheritable Class NullSecurityContext
    	Inherits SecurityContext

    public ref class NullSecurityContext sealed : public SecurityContext

    [<SealedAttribute>]
    type NullSecurityContext =
        class
            inherit SecurityContext
        end

The NullSecurityContext type exposes the following members.

Methods

| Name | Description
--- | --- | ---
| Equals | Determines whether the specified Object is equal to the current Object. (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 (Overrides SecurityContext Impersonate(Object).)
| ToString | Returns a String that represents the current Object. (Inherited from Object.)

Top
Fields

| Name | Description
--- | --- | ---
| Instance | 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

log4net.Util Namespace