February 2019
Intermediate to advanced
626 pages
15h 51m
English
The full set of possible values that may be assigned can be viewed by creating an instance of the CmdletBinding object:
PS> [CmdletBinding]::new()PositionalBinding : TrueDefaultParameterSetName :SupportsShouldProcess : FalseSupportsPaging : FalseSupportsTransactions : FalseConfirmImpact : MediumHelpUri :RemotingCapability : PowerShellTypeId : System.Management.Automation.CmdletBindingAttribute
For example, the output from the preceding command shows the existence of a PositionalBinding property. Setting this to false disables automatic position binding:
function Test-Binding { [CmdletBinding(PositionalBinding = $false)] param ( $Parameter1 )}
When the preceding function is called, and a value for Parameter1 is given ...
Read now
Unlock full access