Click to Rate and Give Feedback
MSDN
MSDN Library
Windows PowerShell
Cmdlet Class
Cmdlet Properties
 Cmdlet.Stopping Property (System.Ma...

  Switch on low bandwidth view
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)
Dim instance As Cmdlet
Dim value As Boolean

value = instance.Stopping
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.

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.


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

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
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker