共用方式為


NewPSSessionCommand.StopProcessing Method

Definition

This method is called when the user sends a stop signal to the cmdlet. The cmdlet will not exit until it has completed creating all the runspaces (basically the runspaces its waiting on OpenAsync is made available). However, when a stop signal is sent, CloseAsyn needs to be called to close all the pending runspaces.

protected:
 override void StopProcessing();
protected:
 override void StopProcessing();
 override void StopProcessing();
protected override void StopProcessing ();
override this.StopProcessing : unit -> unit
Protected Overrides Sub StopProcessing ()

Remarks

This is called from a separate thread so need to worry about concurrency issues

Applies to