Share via


RedirectedException Constructors

Definition

Overloads

RedirectedException()

Instantiates a new instance of the RedirectedException class.

RedirectedException(String)

Instantiates a new instance of the RedirectedException class.

RedirectedException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the RedirectedException class using data serialized via ISerializable

RedirectedException(String, Exception)

Instantiates a new instance of the RedirectedException class.

RedirectedException()

Instantiates a new instance of the RedirectedException class.

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

Applies to

RedirectedException(String)

Instantiates a new instance of the RedirectedException class.

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

Parameters

message
String

Applies to

RedirectedException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Initializes a new instance of the RedirectedException class using data serialized via ISerializable

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

Parameters

info
SerializationInfo

Serialization information.

context
StreamingContext

Streaming context.

Attributes

Applies to

RedirectedException(String, Exception)

Instantiates a new instance of the RedirectedException class.

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

Parameters

message
String
innerException
Exception

Applies to