Changes

Jump to: navigation, search

Windows PowerShell 1.0 Functions

31 bytes added, 18:49, 18 March 2009
Passing Parameters to a Function
== Passing Parameters to a Function ==
<google>ADSDAQBOX_FLOW</google>
In the preceding example, the function did not expect to be passed any parameters (also known as arguments). These are values which are entered on the command-line along with the function at the point that it is called. Windows PowerShell stores any parameters that were entered in a special variable called ''$args''. The ''$args'' variable is actually an array object with each parameter assigned to an array element (for more detailed information on working with arrays refer to the chapter entitled [[Working with Arrays in Windows PowerShell 1.0]]).

Navigation menu