Cmdlet.Stopping Property
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)
Usage

Dim instance As Cmdlet
Dim value As Boolean

value = instance.Stopping
Syntax

Visual Basic
Public ReadOnly Property Stopping As Boolean
C#
public bool Stopping { get; }
C++
public:
property bool Stopping {
    bool get ();
}
J#
/** @property */
public boolean get_Stopping ()
JScript
public function get Stopping () : boolean

Property Value

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.
Remarks

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.


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP, Windows 7, Windows 2008 R2

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP, Windows 7, Windows 2008 R2
See Also

Page view tracker