CommandCollection Class

Definition

Defines a collection of Commands. This collection is used by Pipeline to define elements of pipeline.

public ref class CommandCollection sealed : System::Collections::ObjectModel::Collection<System::Management::Automation::Runspaces::Command ^>
public sealed class CommandCollection : System.Collections.ObjectModel.Collection<System.Management.Automation.Runspaces.Command>
type CommandCollection = class
    inherit Collection<Command>
Public NotInheritable Class CommandCollection
Inherits Collection(Of Command)
Inheritance
CommandCollection

Methods

Add(String)

Adds a new command for given string.

AddScript(String)

Adds a new script command.

AddScript(String, Boolean)

Adds a new scrip command for given script.

Applies to