Windows desktop applications
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Cmdlet::Stopping Property

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Gets an indicator that the pipeline is stopping. The pipeline can be stopped for numerous reasons, such as when the user has entered the key combination CTRL+C, a terminating error has occurred, the hosting application requested a stop, and so on.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

public:
property bool Stopping {
	bool get();
}

Property Value

Type: System::Boolean

A Boolean value that indicates true if the user has entered the key combination CTRL+C, a terminating error has occurred, the hosting application requested a stop, and so on. The default is false.

The cmdlet should implement the StopProcessing method to perform operations that are required before the pipeline processing is stopped.

For more information about cmdlets, see Windows PowerShell Cmdlets.

Return to top

Community Additions

Show:
© 2016 Microsoft