Converting the Dictionary Object's Add Method

Definition: Adds a key/item pair.

Add

You can add key/item pairs when you create the hash table. You can also add more key/item pairs using the Add method. Here we’re adding the key chicken with the corresponding item meat to the $food hash table: