Runspace.CreatePipeline Method

Definition

Overloads

CreatePipeline()

Create an empty pipeline

CreatePipeline(String)

Creates a pipeline for specified command string

CreatePipeline(String, Boolean)

Create a pipeline from a command string.

CreatePipeline()

Create an empty pipeline

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

An empty pipeline

CreatePipeline(String)

Creates a pipeline for specified command string

public abstract System.Management.Automation.Runspaces.Pipeline CreatePipeline (string command);
Parameters
command
String

A valid command string

Returns

A pipline pre-filled with a Command object for specified command parameter.

Exceptions

CreatePipeline(String, Boolean)

Create a pipeline from a command string.

public abstract System.Management.Automation.Runspaces.Pipeline CreatePipeline (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 a Command object for specified command parameter.

Exceptions