ArgumentToConfigurationDataTransformationAttribute Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public ref class ArgumentToConfigurationDataTransformationAttribute sealed : System::Management::Automation::ArgumentTransformationAttribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false)]
public sealed class ArgumentToConfigurationDataTransformationAttribute : System.Management.Automation.ArgumentTransformationAttribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false)>]
type ArgumentToConfigurationDataTransformationAttribute = class
inherit ArgumentTransformationAttribute
Public NotInheritable Class ArgumentToConfigurationDataTransformationAttribute
Inherits ArgumentTransformationAttribute
- Inheritance
-
ArgumentToConfigurationDataTransformationAttribute
- Attributes
Transform |
The property is only checked when: a) The parameter is not mandatory b) The argument is null. (Inherited from ArgumentTransformationAttribute) |
Transform(Engine |
Convert a file of ConfigurationData into a hashtable. |
Производ | Верзије |
---|---|
PowerShell SDK | 7.2.0, 7.3.0, 7.4.0 |
Windows PowerShell | 5.1.0.0 |