Transformation, validation, and completion
PowerShell offers attributes to transform or validate values of variables, parameters, and class properties in PowerShell.
In addition to these, PowerShell also offers argument completer attributes, which were explored in Chapter 18, Parameters, Validation, and Dynamic Parameters.
In addition to the built-in validators, each of these transformation, validation, and completion attributes can be implemented using classes in PowerShell.
Argument transformation attributes are used to transform values being assigned to a variable, parameter, or property before validation and binding.
Argument transformation attribute classes
An argument-transformation attribute is used to convert the value of an argument for a variable. The transformation operation is carried out before PowerShell completes the assignment to the variable (or binding to a parameter or property), giving the opportunity to change the value.
Classes for argument...