PropertiesDictionary Item Property | Apache log4net™ SDK Documentation

Gets or sets the value of the property with the specified key.

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

C#
VB
C++
F#
Copy

    public override Object this[
    	string key
    ] { get; set; }

    Public Overrides Default Property Item (
    	key As String
    ) As Object
    	Get
    	Set

    public:
    virtual property Object^ default[String^ key] {
    	Object^ get (String^ key) override;
    	void set (String^ key, Object^ value) override;
    }

    abstract Item : Object with get, set
    override Item : Object with get, set

#### Parameters

key
  Type: System
  String
  The key of the property to get or set.

#### Property Value

Type: Object
The value of the property with the specified key.
Remarks

The property value will only be serialized if it is serializable. If it cannot be serialized it will be silently ignored if a serialization operation is performed.

See Also

#### Reference

PropertiesDictionary Class
log4net.Util Namespace