Partager via


RunspaceProvider.RequestCleanup Method

Definition

Request a cleanup to the destination specified in the connection info. This means no runspaces will be held to the specified connection info.

public:
 virtual void RequestCleanup(System::Management::Automation::Runspaces::WSManConnectionInfo ^ connectionInfo, System::Threading::WaitCallback ^ callback, System::Object ^ state);
public virtual void RequestCleanup (System.Management.Automation.Runspaces.WSManConnectionInfo connectionInfo, System.Threading.WaitCallback callback, object state);
abstract member RequestCleanup : System.Management.Automation.Runspaces.WSManConnectionInfo * System.Threading.WaitCallback * obj -> unit
override this.RequestCleanup : System.Management.Automation.Runspaces.WSManConnectionInfo * System.Threading.WaitCallback * obj -> unit
Public Overridable Sub RequestCleanup (connectionInfo As WSManConnectionInfo, callback As WaitCallback, state As Object)

Parameters

connectionInfo
WSManConnectionInfo

connection info to which cleanup is desired

callback
WaitCallback

callback to invoke

state
Object

caller specified state

Applies to