GlobalContextProperties ClassApache 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.6.0-.NET 4.0
Syntax

public sealed class GlobalContextProperties : ContextPropertiesBase

The GlobalContextProperties type exposes the following members.

Properties

  NameDescription
Public propertyItem
Gets or sets the value of a property
(Overrides ContextPropertiesBase.Item[String].)
Top
Methods

  NameDescription
Public methodClear
Clear the global context properties
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 methodRemove
Remove a property from the global context
Public methodToString
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