Runspace.CreateNestedPipeline Method

Definition

Overloads

CreateNestedPipeline(String, Boolean)

Creates a nested pipeline.

CreateNestedPipeline()

Creates a nested pipeline.

CreateNestedPipeline(String, Boolean)

Creates a nested pipeline.

public abstract System.Management.Automation.Runspaces.Pipeline CreateNestedPipeline (string command, bool addToHistory);
Parameters
command
String

A valid command string

addToHistory
Boolean

if true command is added to history

Returns

A pipline pre-filled with Command specified in commandString.

Exceptions

CreateNestedPipeline()

Creates a nested pipeline.

public abstract System.Management.Automation.Runspaces.Pipeline CreateNestedPipeline ();
Returns

Remarks

Nested pipelines are needed for nested prompt scenario. Nested prompt requires that we execute new pipelines( child pipelines) while current pipeline (lets call it parent pipeline) is blocked.