Compartilhar via


Hashtable.Add Method

Adds an element that has the specified key and value into the Hashtable.

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)

Syntax

public virtual void Add (
         Object key,
         Object value
)

Parameters

  • key
    The key of the element to add.
  • value
    The value of the element to add. This value can be null.

Version Information

Available in the .NET Micro Framework version 4.1 and 4.2.

See Also

Reference

Hashtable Class
Hashtable Members
System.Collections Namespace