我有一个哈希表:
$myHash = @{
"key1" = @{
"Entry 1" = "one"
"Entry 2" = "two"
}
"key 2" = @{
"Entry 1" = "three"
"Entry 2" = "four"
}
}
我正在循环获取对象:
$myHash.keys | ForEach-Object {
Write-Host $_["Entry 1"]
}
工作正常,但我可以用什么来确定我$myHash
在哪个键?$_.Name
不返回任何东西。我难住了。帮助?