TechNet
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

Converting the Dictionary Object's Remove Method


Windows PowerShell


Definition: Remove a key/item pair.

Remove


This is a pretty simple one. The hash table equivalent of the Remove method on a Dictionary object is the - yes, that’s right - the Remove method:


$food.Remove("carrot")


This will remove the Key carrot and its corresponding item from the hash table.


See conversions of other Dictionary object methods and properties.
Return to the VBScript to Windows PowerShell home page

Show:
© 2016 Microsoft