PSRemotingTransportRedirectException Constructors

Definition

Overloads

PSRemotingTransportRedirectException()

This is the default constructor.

PSRemotingTransportRedirectException(String)

This constructor takes a localized error message.

PSRemotingTransportRedirectException(SerializationInfo, StreamingContext)
Obsolete.

This constructor is required by serialization.

PSRemotingTransportRedirectException(String, Exception)

This constructor takes a localized message and an inner exception.

PSRemotingTransportRedirectException()

This is the default constructor.

C++
public:
 PSRemotingTransportRedirectException();

Applies to

PowerShell SDK 7.4.0 y otras versiones
Producto Versiones
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

PSRemotingTransportRedirectException(String)

This constructor takes a localized error message.

C++
public:
 PSRemotingTransportRedirectException(System::String ^ message);

Parameters

message
String

A localized error message.

Applies to

PowerShell SDK 7.4.0 y otras versiones
Producto Versiones
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

PSRemotingTransportRedirectException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

This constructor is required by serialization.

C++
protected:
 PSRemotingTransportRedirectException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);

Parameters

Attributes

Exceptions

  1. info is null.

Applies to

PowerShell SDK 7.4.0 y otras versiones
Producto Versiones (Obsoleto)
PowerShell SDK 7.2.0, 7.3.0 (7.4.0)
Windows PowerShell 5.1.0.0

PSRemotingTransportRedirectException(String, Exception)

This constructor takes a localized message and an inner exception.

C++
public:
 PSRemotingTransportRedirectException(System::String ^ message, Exception ^ innerException);

Parameters

message
String

Localized error message.

innerException
Exception

Inner exception.

Applies to

PowerShell SDK 7.4.0 y otras versiones
Producto Versiones
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0