Pipeline Input Binding

say it: “PYPE-lyne IN-put BYND-ing” /ˈpaɪplaɪn ˈɪnpʊt ˈbaɪndɪŋ/

How PowerShell matches piped objects to a command's parameters.

What is Pipeline Input Binding?

Pipeline input binding is how PowerShell decides which parameter receives each piped object, either the whole object (ValueFromPipeline) or a matching property (ValueFromPipelineByPropertyName).

function Get-FileSize {
    param([Parameter(ValueFromPipelineByPropertyName)][string]$FullName)
    process { (Get-Item $FullName).Length }
}

Get-ChildItem *.txt | Get-FileSize

Level: Freelancer · More PowerShell terms at this level

Updated