February 2019
Intermediate to advanced
626 pages
15h 51m
English
A RuntimeDefinedParameter object describes a single parameter. The definition includes the name of the parameter, the parameter type, and any attributes that should be set for that parameter. PowerShell does not include type accelerators for creating RuntimeDefinedParameter; the full name, System.Management.Automation.RuntimeDefinedParameter, must be used. The constructor for RuntimeDefinedParameter expects three arguments: a string, which will be the parameter name, a .NET type for the parameter, and a collection or array of attributes that should be assigned. The attribute collection must contain at least one Parameter attribute.
The following example, which creates a parameter named Action, makes ...
Read now
Unlock full access