Share via


PSRemotingTransportException Constructors

Definition

Overloads

PSRemotingTransportException()

This is the default constructor.

PSRemotingTransportException(String)

This constructor takes a localized error message.

PSRemotingTransportException(SerializationInfo, StreamingContext)
Obsolete.

This constructor is required by serialization.

PSRemotingTransportException(String, Exception)

This constructor takes a localized message and an inner exception.

PSRemotingTransportException()

This is the default constructor.

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

Applies to

PSRemotingTransportException(String)

This constructor takes a localized error message.

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

Parameters

message
String

A localized error message.

Applies to

PSRemotingTransportException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

This constructor is required by serialization.

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

Parameters

Attributes

Exceptions

  1. info is null.

Applies to

PSRemotingTransportException(String, Exception)

This constructor takes a localized message and an inner exception.

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

Parameters

message
String

Localized error message.

innerException
Exception

Inner exception.

Applies to