ThreadContextProperties Class | Apache log4net™ SDK Documentation

Implementation of Properties collection for the ThreadContext
Inheritance Hierarchy

System
Object
log4net.Util
ContextPropertiesBase
log4net.Util
ThreadContextProperties

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

    Public NotInheritable Class ThreadContextProperties
    	Inherits ContextPropertiesBase

    public ref class ThreadContextProperties sealed : public ContextPropertiesBase

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

The ThreadContextProperties 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 all 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.)
| GetKeys | Get the keys stored in the properties.
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| Remove | Remove a property
| ToString | Returns a String that represents the current Object. (Inherited from Object.)

Top
Remarks

Class implements a collection of properties that is specific to each thread. The class is not synchronized as each thread has its own PropertiesDictionary.

See Also

#### Reference

log4net.Util Namespace