Partilhar via


ArgumentTransformationAttribute.Transform(EngineIntrinsics, Object) Method

Definition

Method that will be overridden by the subclasses to transform the inputData parameter argument into some other object that will be used for the parameter's value.

public:
 abstract System::Object ^ Transform(System::Management::Automation::EngineIntrinsics ^ engineIntrinsics, System::Object ^ inputData);
public abstract object Transform (System.Management.Automation.EngineIntrinsics engineIntrinsics, object inputData);
abstract member Transform : System.Management.Automation.EngineIntrinsics * obj -> obj
Public MustOverride Function Transform (engineIntrinsics As EngineIntrinsics, inputData As Object) As Object

Parameters

engineIntrinsics
EngineIntrinsics

The engine APIs for the context under which the transformation is being made.

inputData
Object

Parameter argument to mutate.

Returns

The transformed value(s) of inputData.

Exceptions

Should be thrown for invalid arguments.

Should be thrown for any problems during transformation.

Remarks

Return the transformed value of inputData. Throw ArgumentException if the value of inputData is invalid, and throw ArgumentTransformationMetadataException for other recoverable errors.

Applies to