Analyze Parameter Binding

You probably know that PowerShell is pretty flexible when it comes to parameters you want to submit to cmdlets and functions. You can name them (putting the parameter name in front of your arguments), you can abbreviate the name (as long as the parameter name is not ambiguous), and you can even use some positional parameters (no parameter name needed if you specify the arguments in the right order). You can examine it to find out how PowerShell actually performs this amazing parameter binding:

trace-command -name parameterbinding {dir c:\ *.* -recurse} -pshost

This command analyzes the code in brackets.

Twitter This Tip! ReTweet this Tip!


Posted Nov 12 2009, 08:00 AM by ps1

Comments

Twitter Trackbacks for Analyze Parameter Binding - Power Tips - PowerShell.com [powershell.com] on Topsy.com wrote Twitter Trackbacks for Analyze Parameter Binding - Power Tips - PowerShell.com [powershell.com] on Topsy.com
on 11-12-2009 5:16 PM

Pingback from  Twitter Trackbacks for                 Analyze Parameter Binding - Power Tips - PowerShell.com         [powershell.com]        on Topsy.com

Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.