Partilhar via


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(System::String ^ command, bool addToHistory);
public abstract System.Management.Automation.Runspaces.Pipeline CreateNestedPipeline (string command, bool addToHistory);
abstract member CreateNestedPipeline : string * bool -> System.Management.Automation.Runspaces.Pipeline
Public MustOverride Function CreateNestedPipeline (command As String, addToHistory As Boolean) As Pipeline

Parameters

command
String

A valid command string.

addToHistory
Boolean

If true command is added to history.

Returns

A pipeline pre-filled with Command specified in commandString.

Exceptions

command is null

Applies to

CreateNestedPipeline()

Creates a nested pipeline.

public:
 abstract System::Management::Automation::Runspaces::Pipeline ^ CreateNestedPipeline();
public abstract System.Management.Automation.Runspaces.Pipeline CreateNestedPipeline ();
abstract member CreateNestedPipeline : unit -> System.Management.Automation.Runspaces.Pipeline
Public MustOverride Function CreateNestedPipeline () As Pipeline

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.

Applies to