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. [Edit]

public virtual void Add (object key, object value)

Parameters

key
The key of the entry to add. [Edit]
value
The value of the entry to add. [Edit]

Exceptions

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

Remarks

Documentation for this section has not yet been entered. [Edit]

Requirements

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