Key verification in an ordered hashtable

You are here:
< Back

An ordered hashtable does not have the .ContainsKey() method like the unordered one because it’s a different object type (OrderedDictionary vs. HashTable). But the same functionality can be easily achieved by using

$table.Keys -contains 'keystring'

KB STATUS: Current