RunspaceInvoke
Class
Definition
Defines a class which allows simple execution of commands from CLR languages
public class RunspaceInvoke : 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) |
Invoke the specified script |
| Invoke(String, IEnumerable) |
Invoke the specified script and passes specified input to the script |
| Invoke(String, IEnumerable, IList) |
Invoke the specified script and passes specified input to the script. |