Mono Class Library: System.Collections.Hashtable Overview | Members

System.Collections.Hashtable.Add Method

Adds an entry with the specified key and value into the current instance.

public virtual void Add (object key, object value)

Parameters

key
The key of the entry to add.
value
The value of the entry to add.

Exceptions

TypeReason
ArgumentNullExceptionkey is null.
ArgumentExceptionAn entry with the same key already exists in the current instance.
NotSupportedExceptionThe current instance is read-only or has a fixed size.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0