Partager via


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.

public:
 PSRemotingTransportRedirectException();
public:
 PSRemotingTransportRedirectException();
 PSRemotingTransportRedirectException();
public PSRemotingTransportRedirectException ();
Public Sub New ()

Applies to

PSRemotingTransportRedirectException(String)

This constructor takes a localized error message.

public:
 PSRemotingTransportRedirectException(System::String ^ message);
public:
 PSRemotingTransportRedirectException(Platform::String ^ message);
 PSRemotingTransportRedirectException(std::wstring const & message);
public PSRemotingTransportRedirectException (string message);
new System.Management.Automation.Remoting.PSRemotingTransportRedirectException : string -> System.Management.Automation.Remoting.PSRemotingTransportRedirectException
Public Sub New (message As String)

Parameters

message
String

A localized error message.

Applies to

PSRemotingTransportRedirectException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

This constructor is required by serialization.

protected:
 PSRemotingTransportRedirectException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected PSRemotingTransportRedirectException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")]
protected PSRemotingTransportRedirectException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Management.Automation.Remoting.PSRemotingTransportRedirectException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Automation.Remoting.PSRemotingTransportRedirectException
[<System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")>]
new System.Management.Automation.Remoting.PSRemotingTransportRedirectException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Automation.Remoting.PSRemotingTransportRedirectException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

Attributes

Exceptions

  1. info is null.

Applies to

PSRemotingTransportRedirectException(String, Exception)

This constructor takes a localized message and an inner exception.

public:
 PSRemotingTransportRedirectException(System::String ^ message, Exception ^ innerException);
public PSRemotingTransportRedirectException (string message, Exception innerException);
new System.Management.Automation.Remoting.PSRemotingTransportRedirectException : string * Exception -> System.Management.Automation.Remoting.PSRemotingTransportRedirectException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

Localized error message.

innerException
Exception

Inner exception.

Applies to