February 2019
Intermediate to advanced
626 pages
15h 51m
English
The Parameter attribute is an optional attribute that is used to define the behavior of a parameter within a script or function. Creating an instance of the Parameter object shows the different properties that might be set:
PS> [Parameter]::new()Position : -2147483648ParameterSetName : __AllParameterSetsMandatory : FalseValueFromPipeline : FalseValueFromPipelineByPropertyName : FalseValueFromRemainingArguments : FalseHelpMessage :HelpMessageBaseName :HelpMessageResourceId :DontShow : FalseTypeId : System.Management.Automation.ParameterAttribute
A few of these properties should be ignored as they are not intended to be set directly, such as HelpMessageBaseName, HelpMessageResourceId, and TypeId.
A number of the more ...
Read now
Unlock full access