powershell - {}在PowerShell中是什么意思?

标签 powershell

在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/

相关文章:

powershell - Powershell脚本删除临时Internet文件

powershell - 为什么 TFS Power Tools 2013 安装不询问我是否要安装 PowerShell Cmdlet?

powershell - Blob属性-除了通过ForEach循环之外,还有其他更好的方法可以从此集合中进行选择吗?

powershell - Powershell中的原型(prototype)继承?

parsing - 使用 Powershell 解析二进制文件

powershell - intellij IDEA是否有任何好的PowerShell插件?

c# - 从 C# 调用 Powershell 函数

sql-server - 在 vagrant 上通过 Chef-solo 时,SQL Server 安装失败,错误代码为 "Unable to generate a temporary class"

c# - 为什么我收藏的字符串会截断单词?

python - 如何将 Python 3.3 添加到 Powershell?