Share via


RunspacePool.Close Method

Definition

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.

Applies to