July 7th, 2006

Are ScriptBlock parameters implemented for functions?

PowerShell Team
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
Category
PowerShell
Topics
FAQ

Author

PowerShell Team
PowerShell Team

PowerShell is a task-based command-line shell and scripting language built on .NET. PowerShell helps system administrators and power-users rapidly automate tasks that manage operating systems (Linux, macOS, and Windows) and processes.

0 comments

Discussion are closed.