Pipeline input Extra code is necessary when you want your function to accept pipeline input. As mentioned earlier in this book, commands can accept pipeline inputby value(by type) orby property name. You can write your functions like the native commands so they accept either one or both of ...
true Position? 0 Default value None Accept pipeline input? True (ByPropertyName, ByValue) Accept wildcard characters? false 通过管道Start-Service将对象发送到 时,PowerShell 会尝试将对象与InputObject和Name参数相关联。 接受管道输入的方法 Cmdlet 参数可以通过以下两种不同方式之一接受管道输入: ...
The red outlined area inFigure 11shows that the name parameter of the Set-Service cmdlet will now attempt to accept pipeline input ByPropertyName without coercion, whichisaccepted and binding is successful. This is because the pipeline item is aproperty, and only aproperty...
-Path <string[]> Specifies a path of one or more locations. Wildcard characters are permitted. The default location is the current directory (.). Required? false Position? 0 Default value Current directory Accept pipeline input? true (ByValue, ByPropertyName) Accept wildcard characters? true ...
Accept pipeline input?True (ByPropertyName) -FunctionName <String> The name or ARN of the Lambda function or version.Name formats Function name–my-function(name-only),my-function:1(with version). Function ARN–arn:aws:lambda:us-west-2:123456789012:function:my-function. ...
Accept pipeline input? True (ByPropertyName) -FunctionVersion <FunctionVersion> Set to ALL to include entries for all published versions of each function. Required? False Position? Named Accept pipeline input? True (ByPropertyName) -Marker <String> Specify the pagination token that's returned by...
or a valid GUID (for example, 12345678-90ab -cdef-1234-567890bcdefgh). Required? true Position? 1 Default value Accept pipeline input? True Accept wildcard characters false 如果您去看輸出的 5 行,會看到它提供如何使用 -identity參數的詳細資訊。例如,必要值等於True,表示-identity 參數...
or a valid GUID (for example, 12345678-90ab -cdef-1234-567890bcdefgh). Required? true Position? 1 Default value Accept pipeline input? True Accept wildcard characters false 如果查看输出的最后,您会看到该输出提供了有关如何使用-identity 参数的详细信息。例如,Required等于 True,这表示 -...
Function "Main" in PowerShell Function parameter validation, accept multiple variables types Function says "The term 'time' is not recognized as the name of a cmdlet, function, script file, or operable function to accept array from pipe Gather website data with PowerShell Generate a Random file...
Accept pipeline input: False Accept wildcard characters: False -Wait 指示cmdlet 取消显示命令提示符并阻止 Windows PowerShell 关闭,直到 Out-GridView 窗口关闭。 默认情况下,命令提示符将在打开 Out-GridView 窗口时返回。 此功能允许你在 Windows 快捷方式中使用 Out-GridView cmdlet。 当在不使用 Wait 参数的...