Windows Dev Center

PipelineStoppedException Class

The exception that is thrown when a cmdlet or a Windows PowerShell provider attempts to write to the pipeline or perform a number of other Windows PowerShell operations after the pipeline has been terminated. The pipeline could have been terminated before the call was made or during the call.

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

Dim instance As PipelineStoppedException

public class PipelineStoppedException : RuntimeException
/** @attribute SerializableAttribute() */ 
public class PipelineStoppedException extends RuntimeException
public class PipelineStoppedException extends RuntimeException

Cmdlets and providers do not have to catch this exception unless they have cleanup operations to perform. They can simply allow this exception to propagate up, and the Windows PowerShell runtime will catch the exception.


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


Target Platforms

© 2015 Microsoft