PSRemotingTransportRedirectException Class

Definition

This exception is used by PowerShell's remoting infrastructure to notify a URI redirection exception.

C++
public ref class PSRemotingTransportRedirectException : System::Management::Automation::Remoting::PSRemotingTransportException
Inheritance
PSRemotingTransportRedirectException
Attributes

Constructors

PSRemotingTransportRedirectException()

This is the default constructor.

PSRemotingTransportRedirectException(SerializationInfo, StreamingContext)
Obsolete.

This constructor is required by serialization.

PSRemotingTransportRedirectException(String, Exception)

This constructor takes a localized message and an inner exception.

PSRemotingTransportRedirectException(String)

This constructor takes a localized error message.

Properties

ErrorCode

The error code from native library API call.

(Inherited from PSRemotingTransportException)
ErrorRecord

Additional information about the error.

(Inherited from RuntimeException)
RedirectLocation

String specifying a redirect location.

TransportMessage

This the message from the native transport layer.

(Inherited from PSRemotingTransportException)
WasThrownFromThrowStatement (Inherited from RuntimeException)

Methods

GetObjectData(SerializationInfo, StreamingContext)

Serializes the exception data.

GetObjectData(SerializationInfo, StreamingContext)

Serializes the exception data.

(Inherited from PSRemotingTransportException)
SetDefaultErrorRecord()

Set the default ErrorRecord.

(Inherited from PSRemotingTransportException)

Applies to

Producto Versiones
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0