GlobalContextProperties Class | Apache log4net™ SDK Documentation

Implementation of Properties collection for the GlobalContext
Inheritance Hierarchy

System
Object
log4net.Util
ContextPropertiesBase
log4net.Util
GlobalContextProperties

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 GlobalContextProperties : ContextPropertiesBase

    Public NotInheritable Class GlobalContextProperties
    	Inherits ContextPropertiesBase

    public ref class GlobalContextProperties sealed : public ContextPropertiesBase

    [<SealedAttribute>]
    type GlobalContextProperties =
        class
            inherit ContextPropertiesBase
        end

The GlobalContextProperties type exposes the following members.

Properties

| Name | Description
--- | --- | ---
| Item | Gets or sets the value of a property (Overrides ContextPropertiesBase Item String .)

Top
Methods

| Name | Description
--- | --- | ---
| Clear | Clear the global context properties
| 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.)
| Remove | Remove a property from the global context
| ToString | Returns a String that represents the current Object. (Inherited from Object.)

Top
Remarks

This class implements a properties collection that is thread safe and supports both storing properties and capturing a read only copy of the current propertied.

This class is optimized to the scenario where the properties are read frequently and are modified infrequently.

See Also

#### Reference

log4net.Util Namespace