Transform

The Transform() method converts the input object into one or more matching LinkKind enums, raising an exception if the input can’t be converted.

Overloads

Transform(EngineIntrinsics, Object)
Converts the input object into one or more matching LinkKind enums, raising an exception if the input can’t be converted.

Transform(EngineIntrinsics, Object)

Converts the input object into one or more matching LinkKind enums, raising an exception if the input can’t be converted.

[LinkKindTransformAttribute] Transform(
    [EngineIntrinsics] $engineIntrinsics,
    [Object] $inputData
)

Parameters

engineIntrinsics

The PowerShell engine APIs for the context under which the prerequisite is being evaluated.

inputData

The value of the argument to transform into one or more LinkKind enums. When this value is a a LinkKind, that value is passed through. When this value is a string, the value is compared to the list of valid LinkKind enums with the -like operator and returns every value that matches the input string.

Exceptions