Share via


PSRemotingDataStructureException Constructors

Definition

Overloads

PSRemotingDataStructureException()

Default constructor.

PSRemotingDataStructureException(String)

This constructor takes a localized string as the error message.

PSRemotingDataStructureException(SerializationInfo, StreamingContext)
Obsolete.

This constructor is required by serialization.

PSRemotingDataStructureException(String, Exception)

This constructor takes a localized string as the error message, and an inner exception.

PSRemotingDataStructureException()

Default constructor.

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

Applies to

PSRemotingDataStructureException(String)

This constructor takes a localized string as the error message.

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

Parameters

message
String

A localized string as an error message.

Applies to

PSRemotingDataStructureException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

This constructor is required by serialization.

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

Parameters

Attributes

Applies to

PSRemotingDataStructureException(String, Exception)

This constructor takes a localized string as the error message, and an inner exception.

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

Parameters

message
String

A localized string as an error message.

innerException
Exception

Inner exception.

Applies to