Are ScriptBlock parameters implemented for functions?

PowerShell Team

PSMDTAG:FAQ: Are ScriptBlock parameters implemented for functions?
Not in V1.  Functions do not use the same parameter binding mechanism as Cmdlets. 
This is something we intent to address in a future release. 

Jeffrey Snover [MSFT]
Windows PowerShell Architect
Microsoft Corporation
This posting is provided “AS IS” with no warranties, no confers rights.
Visit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShell
Visit the Windows PowerShell ScriptCenter at:  http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx

0 comments

Discussion is closed.

Feedback usabilla icon