Assembly: System.Management.Automation (in System.Management.Automation.dll)
The pipeline is stopped. The pipeline was terminated either before the call was made or while the call was in progress. By default, the cmdlet should allow the caller of the processing record method to catch this exception.
The call cannot be completed at this time or cannot be completed from this thread. For more information, see the following Remarks section.
When this method is called, an error record is sent to the error pipeline and control is returned to the cmdlet for more processing. For more information about error reporting and error records, see Windows PowerShell Error Reporting.
This method can be called as many times as necessary, but the calls can be made only from within the cmdlet input processing methods (BeginProcessing, ProcessRecord, and EndProcessing) and only from that thread. If this call is made from outside these methods or from another thread, an InvalidOperationException exception is thrown.
This method should not be used in the following cases:
When the errorRecord parameter specifies an ErrorRecord object that contains an implementation of an IContainsErrorRecord interface. These objects should not be used because the interface contains a ParentContainsErrorRecordException exception.
When terminating errors occur where the cmdlet cannot continue. For more information about reporting terminating error occurrences, see the ThrowTerminatingError method.
To write an object to the output pipeline, see WriteObject.
For more information about cmdlets, see Windows PowerShell Cmdlets.