RSS

powershell v2 function & parameter & mandatory

07 Apr
function fthree {
param
(
[parameter(Mandatory=$true)]
[int]$a,
[parameter(Mandatory=$true)]
[int]$b
)
$a
+ $b
}

very useful parameter!

Advertisements
 
1 Comment

Posted by on April 7, 2010 in Powershell

 

One response to “powershell v2 function & parameter & mandatory

  1. April 7, 2010 at 15:10

    really useful!

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: