Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

Converting the Dictionary Object's Keys Method

Windows PowerShell

Definition: Return a list of all keys.


This is pretty much the same with hash tables as it is with the Dictionary object. Simply call the Keys method:

$a = $food.Keys

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft