ArgumentToConfigurationDataTransformationAttribute Class
Definition
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
Constructors
ArgumentToConfigurationDataTransformationAttribute() |
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. |