ArgumentToConfigurationDataTransformationAttribute Class

Definition

To make it easier to specify -ConfigurationData parameter, we add an ArgumentTransformationAttribute here. When the input data is of type string and is valid path to a file that can be converted to hashtable, we do the conversion and return the converted value. Otherwise, we just return the input data.

C++
public ref class ArgumentToConfigurationDataTransformationAttribute sealed : System::Management::Automation::ArgumentTransformationAttribute
Inheritance
ArgumentToConfigurationDataTransformationAttribute
Attributes

Constructors

Properties

TransformNullOptionalParameters

The property is only checked when: a) The parameter is not mandatory b) The argument is null.

(Inherited from ArgumentTransformationAttribute)

Methods

Transform(EngineIntrinsics, Object)

Convert a file of ConfigurationData into a hashtable.

Applies to

Производ Верзије
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0