Splatting
suggest changeVersions
[{“Name”:“2.0”,“GroupName”:null},{“Name”:“3.0”,“GroupName”:null},{“Name”:“4.0”,“GroupName”:null},{“Name”:“5.0”,“GroupName”:null}]
Introduction
Splatting is a method of passing multiple parameters to a command as a single unit. This is done by storing the parameters and their values as key-value pairs in a hashtable and splatting it to a cmdlet using the splatting operator @
.
Splatting can make a command more readable and allows you to reuse parameters in mulitple command calls.
Remarks
Note: The Array expression operator or @()
have very different behavior than the Splatting operator @
.
Read more at about_Splatting @ TechNet
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents