Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想做,[string]::Join(", ", $HashTable.Keys);但返回System.Collections.Hashtable+KeyCollection...而不是枚举值。
[string]::Join(", ", $HashTable.Keys);
System.Collections.Hashtable+KeyCollection...
我需要为此做一个foreach循环吗?
你可以简单地做:
$HashTable.Keys -join ','