February 2019
Intermediate to advanced
626 pages
15h 51m
English
The CmdletBinding attribute is used to turn a function into an advanced function. Advanced functions were introduced with PowerShell 2.
CmdletBinding may be used to do the following:
If a script or function has no parameters, and wishes to make use of the capabilities of CmdletBinding, an empty param block must be declared:
function Test-EmptyParam { [CmdletBinding()] param ( )}
Read now
Unlock full access