Cmdlet.StopProcessing 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.
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();
protected:
virtual void StopProcessing();
virtual void StopProcessing();
protected virtual void StopProcessing ();
abstract member StopProcessing : unit -> unit
override this.StopProcessing : unit -> unit
Protected Overridable Sub StopProcessing ()
Exceptions
This method is overridden in the implementation of individual Cmdlets, and can throw literally any exception.