다음을 통해 공유


RuntimeException Constructors

Definition

Overloads

RuntimeException()

Initializes a new instance of the RuntimeException class.

RuntimeException(String)

Initializes a new instance of the RuntimeException class.

RuntimeException(SerializationInfo, StreamingContext)
Obsolete.

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

RuntimeException(String, Exception)

Initializes a new instance of the RuntimeException class.

RuntimeException(String, Exception, ErrorRecord)

Initializes a new instance of the RuntimeException class starting with an already populated error record.

RuntimeException()

Initializes a new instance of the RuntimeException class.

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

Applies to

RuntimeException(String)

Initializes a new instance of the RuntimeException class.

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

Parameters

message
String

Applies to

RuntimeException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

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

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

Parameters

info
SerializationInfo

Serialization information.

context
StreamingContext

Streaming context.

Attributes

Applies to

RuntimeException(String, Exception)

Initializes a new instance of the RuntimeException class.

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

Parameters

message
String
innerException
Exception

Applies to

RuntimeException(String, Exception, ErrorRecord)

Initializes a new instance of the RuntimeException class starting with an already populated error record.

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

Parameters

message
String
innerException
Exception
errorRecord
ErrorRecord

Applies to