Updated: April 27, 2016
Applies To: Windows PowerShell
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.
Assembly: System.Management.Automation (in System.Management.Automation.dll)
Initializes a new instance of theclass that is empty.
Initializes a new instance of theclass that contains information read from the provided serialization information.
Initializes a new instance of theclass that contains an exception message.
Initializes a new instance of theclass that contains an exception message and the inner exception that caused this exception to be thrown.
Gets the error record associated with the exception.(Inherited from RuntimeException.)
Gets or sets a value that indicates whether the exception was thrown from a throw statement.(Inherited from 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.