Checks if the hash table contains a key.
True, if the key exists in the hash table, otherwise false.
Hashtable hashTable = new Hashtable();
hashTable.Add("0", "apples");
hashTable.Add("1", "bananas");
hashTable.Add("2", "pears");
if (hashTable.Contains("1")) {
hashTable.Add("3", "pineapple");
}
HashList Class | Sitecore.Collections Namespace