RunspacePool.Close Method
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.
Closes the RunspacePool and cleans all the internal resources. This will close all the runspaces in the runspacepool and release all the async operations waiting for a runspace. If the pool is already closed or broken or closing this will just return.
public:
void Close();
public:
void Close();
void Close();
public void Close ();
member this.Close : unit -> unit
Public Sub Close ()
Exceptions
Cannot close the RunspacePool because RunspacePool is in Closing state.