Runspace.CreatePipeline Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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();
public abstract System.Management.Automation.Runspaces.Pipeline CreatePipeline ();
abstract member CreatePipeline : unit -> System.Management.Automation.Runspaces.Pipeline
Public MustOverride Function CreatePipeline () As Pipeline
Returns
An empty pipeline.
Applies to
CreatePipeline(String)
Creates a pipeline for specified command string.
public:
abstract System::Management::Automation::Runspaces::Pipeline ^ CreatePipeline(System::String ^ command);
public abstract System.Management.Automation.Runspaces.Pipeline CreatePipeline (string command);
abstract member CreatePipeline : string -> System.Management.Automation.Runspaces.Pipeline
Public MustOverride Function CreatePipeline (command As String) As Pipeline
Parameters
- command
- String
A valid command string.
Returns
A pipeline pre-filled with a Command object for specified command parameter.
Exceptions
command is null
Applies to
CreatePipeline(String, Boolean)
Create a pipeline from a command string.
public:
abstract System::Management::Automation::Runspaces::Pipeline ^ CreatePipeline(System::String ^ command, bool addToHistory);
public abstract System.Management.Automation.Runspaces.Pipeline CreatePipeline (string command, bool addToHistory);
abstract member CreatePipeline : string * bool -> System.Management.Automation.Runspaces.Pipeline
Public MustOverride Function CreatePipeline (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 a Command object for specified command parameter.
Exceptions
command is null