Extra code is necessary when you want your function to accept pipeline input. As mentioned earlier in this book, commands can accept pipeline input by value (by type) or by property name. You can write your functions like the native commands so they accept either one or both of these input...
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 apropert...
true Position? 0 Default value None Accept pipeline input? True (ByPropertyName, ByValue) Accept wildcard characters? false 通过管道Start-Service将对象发送到 时,PowerShell 会尝试将对象与InputObject和Name参数相关联。 接受管道输入的方法 Cmdlet 参数可以通过以下两种不同方式之一接受管道输入: ...
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. ...
-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) -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...
Accept pipeline input:True Accept wildcard characters:False -Force El cmdlet de proxy omite este parámetro, ya que no es compatible conPublish-PSResource. Type:SwitchParameter Position:Named Default value:None Required:False Accept pipeline input:False ...
Position: Named Default value: None Required: False Accept pipeline input: False Accept wildcard characters: False-ExcelAutomaticVolatileFunctionCacheLifeTimeSpecifies the maximum time, in seconds, that a computed value for a volatile function is cached for automatic recalculations. -1: Calculates once...
-InputObject Specifies the objects to be written to the file. Enter a variable that contains the objects or type a command or expression that gets the objects. Type:PSObject Position:Named Default value:None Required:False Accept pipeline input:True ...
Type: SwitchParameter Aliases: cf Required: False Position: Named Default value: Depends on preference variable Accept pipeline input: False Accept wildcard characters: False The Confirm parameter overrides the value of the $ConfirmPreference variable for the current command. 默认值为 true。 ...