在PowerShell中,?{ }
块是什么意思?
例如
[enum]::GetValues([io.fileoptions]) | ?{$_.value__ -band 0x90000000}
最佳答案
?
是Where-Object
的别名。如果您必须对实际对象执行更复杂的操作,请使用大括号。您还可以编写:
[enum]::GetValues([io.fileoptions]) | Where-Object { $_.value__ -band 0x90000000}
关于powershell - {}在PowerShell中是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38873221/