Freigeben über


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.

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.

Applies to