Cmdlet.StopProcessing
Method
Definition
When overridden in the derived class, interrupts currently running code within the command. It should interrupt BeginProcessing, ProcessRecord, and EndProcessing. Default implementation in the base class just returns.
protected virtual void StopProcessing ();
Exceptions
This method is overridden in the implementation of individual Cmdlets, and can throw literally any exception.