RunspaceInvoke Class
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.
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 |