Partilhar via


RunspaceAttribute.Transform(EngineIntrinsics, Object) Method

Definition

Transforms the input data to a Runspace.

public override object Transform (System.Management.Automation.EngineIntrinsics engineIntrinsics, object inputData);
override this.Transform : System.Management.Automation.EngineIntrinsics * obj -> obj
Public Overrides 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

If a string, the transformation uses the input as the runspace name. If an int, the transformation uses the input as the runspace ID. If a guid, the transformation uses the input as the runspace GUID. If already a Runspace, the transform does nothing.

Returns

A runspace object representing the inputData.

Applies to