Freigeben über


HaltCommandException Constructors

Definition

Overloads

HaltCommandException()

Instantiates a new instance of the HaltCommandException class.

HaltCommandException(String)

Instantiates a new instance of the HaltCommandException class.

HaltCommandException(SerializationInfo, StreamingContext)
Obsolete.

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

HaltCommandException(String, Exception)

Instantiates a new instance of the HaltCommandException class.

HaltCommandException()

Instantiates a new instance of the HaltCommandException class.

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

Applies to

HaltCommandException(String)

Instantiates a new instance of the HaltCommandException class.

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

Parameters

message
String

Applies to

HaltCommandException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

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

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

Parameters

info
SerializationInfo

Serialization information.

context
StreamingContext

Streaming context.

Attributes

Applies to

HaltCommandException(String, Exception)

Instantiates a new instance of the HaltCommandException class.

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

Parameters

message
String
innerException
Exception

Applies to