Share via


WriteErrorException Constructors

Definition

Overloads

WriteErrorException()

Initializes a new instance of the WriteErrorException class.

WriteErrorException(String)

Initializes a new instance of the WriteErrorException class.

WriteErrorException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the WriteErrorException class for serialization.

WriteErrorException(String, Exception)

Initializes a new instance of the WriteErrorException class.

WriteErrorException()

Initializes a new instance of the WriteErrorException class.

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

Applies to

WriteErrorException(String)

Initializes a new instance of the WriteErrorException class.

public:
 WriteErrorException(System::String ^ message);
public:
 WriteErrorException(Platform::String ^ message);
 WriteErrorException(std::wstring const & message);
public WriteErrorException (string message);
new Microsoft.PowerShell.Commands.WriteErrorException : string -> Microsoft.PowerShell.Commands.WriteErrorException
Public Sub New (message As String)

Parameters

message
String

Applies to

WriteErrorException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Initializes a new instance of the WriteErrorException class for serialization.

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

Parameters

info
SerializationInfo

Serialization information.

context
StreamingContext

Streaming context.

Attributes

Applies to

WriteErrorException(String, Exception)

Initializes a new instance of the WriteErrorException class.

public:
 WriteErrorException(System::String ^ message, Exception ^ innerException);
public WriteErrorException (string message, Exception innerException);
new Microsoft.PowerShell.Commands.WriteErrorException : string * Exception -> Microsoft.PowerShell.Commands.WriteErrorException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String
innerException
Exception

Applies to