Runspace.Close Method

Definition

Close the runspace synchronously.

public abstract void Close ();
Exceptions

RunspaceState is BeforeOpen or Opening

Remarks

Attempts to execute pipelines after a call to close will fail.