Write-output 帮助信息

时间:2025-04-25 16:09:38
 
如下说明是翻译 : help write-output 产生的帮助信息 .
译者 : Edengundam( 马涛 )
 
Write-Output
 
大纲
输出对象到管道 .
 
语法
Write-Output [-inputObject] <PSObject[]> [<CommonParameters>]
 
详细描述
输出对象到管道 .
 
参数
 
-inputObject <PSObject[]>
指定需要输出到管道的对象 . 输入一个包含对象的变量 , 或者一个能够产生对象的命令或表达式 .
 
强制参数 ?
true
参数位置 ?
1
默认值
 
允许从管道绑定输入 ?  
true ( 传值 )
允许通配符扩展
false
 
< 公共参数 >
此命令支持公共参数 : -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable. 更多信息 , 输入 , "get-help about_commonparameters".
 
输入类型
Object[]
 
返回类型
Object[]
 
注意
 
更多信息 , 输入 "Get-Help Write-Output -detailed". 需要技术信息 , 输入 "Get-Help Write-Output -full".
 
如果需要为该命令提供多个参数 , 请使用逗号进行分隔 . 例如 , "<parameter-name> <value1>, <value2>".
 
1
 
C:/PS>write-output "test output" | get-member
 
此命令将字符串 "test output" 通过管道发送给 Get-Member cmdlet, 此命令可以显示 类上的各种成员 , 此命令展示了使用管道来传送字符串 .
 
相关链接
Write-Debug
Write-Verbose
Write-Error
Write-Progress
Write-Host
Write-Warning
Tee-Object