HashtableAdd Method |
Namespace: System.Collections
public virtual void Add( Object key, Object value )
Exception | Condition |
---|---|
ArgumentNullException | key is null. |
ArgumentException | An element with the same key already exists in the Hashtable. |
NotSupportedException | The Hashtable is read-only.-or- The Hashtable has a fixed size. |