RedirectedException Class

Definition

Indicates that a success object was written and success-to-error ("1>&2") has been specified.

public ref class RedirectedException : System::Management::Automation::RuntimeException
Inheritance
RedirectedException
Attributes

Remarks

The redirected object is available as TargetObject in the ErrorRecord which contains this exception.

Constructors

RedirectedException()

Instantiates a new instance of the RedirectedException class.

RedirectedException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the RedirectedException class using data serialized via ISerializable

RedirectedException(String, Exception)

Instantiates a new instance of the RedirectedException class.

RedirectedException(String)

Instantiates a new instance of the RedirectedException class.

Properties

ErrorRecord

Additional information about the error.

(Inherited from RuntimeException)
WasThrownFromThrowStatement (Inherited from RuntimeException)

Methods

Applies to

Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0