Sdílet prostřednictvím


RunspaceInvoke Class

Definition

Defines a class which allows simple execution of commands from CLR languages

public ref class RunspaceInvoke : IDisposable
public class RunspaceInvoke : IDisposable
type RunspaceInvoke = class
    interface IDisposable
Public Class RunspaceInvoke
Implements IDisposable
Inheritance
RunspaceInvoke
Implements

Constructors

RunspaceInvoke()

Create a RunspaceInvoke for invoking commands. This uses a runspace with default PSSnapins.

RunspaceInvoke(Runspace)

Create RunspaceInvoke for invoking command in specified runspace.

RunspaceInvoke(RunspaceConfiguration)

Creates a RunspaceInvoke for invoking commands. Underlying Runspace is created using specified RunspaceConfiguration

RunspaceInvoke(String)

Creates a RunspaceInvoke for invoking commands. Underlying Runspace is created using the specified console file.

Methods

Dispose()

Dispose underlying Runspace

Dispose(Boolean)

Protected dispose which can be overridden by derived classes.

Invoke(String, IEnumerable, IList)

Invoke the specified script and passes specified input to the script.

Invoke(String, IEnumerable)

Invoke the specified script and passes specified input to the script

Invoke(String)

Invoke the specified script

Applies to