Table of Contents

Class PropertiesDictionary

Namespace
log4net.Util
Assembly
log4net.dll

String keyed object map.

public sealed class PropertiesDictionary : ReadOnlyPropertiesDictionary, ISerializable, IDictionary, ICollection, IEnumerable
Inheritance
PropertiesDictionary
Implements
Inherited Members

Remarks

While this collection is serializable only member objects that are serializable will be serialized along with this collection.

Constructors

PropertiesDictionary()

Constructor

public PropertiesDictionary()

Remarks

Initializes a new instance of the PropertiesDictionary class.

PropertiesDictionary(ReadOnlyPropertiesDictionary)

Constructor

public PropertiesDictionary(ReadOnlyPropertiesDictionary propertiesDictionary)

Parameters

propertiesDictionary ReadOnlyPropertiesDictionary

properties to copy

Remarks

Initializes a new instance of the PropertiesDictionary class.

Properties

this[string]

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

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

Parameters

key string

The key of the property to get or set.

Property Value

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.

Methods

Clear()

Remove all properties from the properties collection

public override void Clear()

Remarks

Remove all properties from the properties collection

Remove(string)

Remove the entry with the specified key from this dictionary

public void Remove(string key)

Parameters

key string

the key for the entry to remove

Remarks

Remove the entry with the specified key from this dictionary