次の方法で共有


SupportedRuntimeMissingException Constructors

Definition

Initializes a new instance of the SupportedRuntimeMissingException class.

Overloads

SupportedRuntimeMissingException()

Initializes a new instance of the SupportedRuntimeMissingException class with a system-supplied message that describes the error.

SupportedRuntimeMissingException(String)

Initializes a new instance of the SupportedRuntimeMissingException class with a specified message that describes the error.

SupportedRuntimeMissingException(SerializationInfo, StreamingContext)

Initializes a new instance of the SupportedRuntimeMissingException class with serialized data.

SupportedRuntimeMissingException(String, Exception)

Initializes a new instance of the SupportedRuntimeMissingException class with a specified error message and a reference to the inner exception that is the cause of this exception.

SupportedRuntimeMissingException()

Initializes a new instance of the SupportedRuntimeMissingException class with a system-supplied message that describes the error.

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

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "Runtime Missing Exception." This message takes into account the current system culture.

The following table shows the initial property values for an instance of SupportedRuntimeMissingException.

Property Value
InnerException null.
Message The localized error message string.

See also

Applies to

SupportedRuntimeMissingException(String)

Initializes a new instance of the SupportedRuntimeMissingException class with a specified message that describes the error.

public:
 SupportedRuntimeMissingException(System::String ^ message);
public SupportedRuntimeMissingException (string message);
new System.Deployment.Application.SupportedRuntimeMissingException : string -> System.Deployment.Application.SupportedRuntimeMissingException
Public Sub New (message As String)

Parameters

message
String

The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

Remarks

The following table shows the initial property values for an instance of SupportedRuntimeMissingException.

Property Value
InnerException null.
Message The error message string specified in message.

See also

Applies to

SupportedRuntimeMissingException(SerializationInfo, StreamingContext)

Initializes a new instance of the SupportedRuntimeMissingException class with serialized data.

protected:
 SupportedRuntimeMissingException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected SupportedRuntimeMissingException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Deployment.Application.SupportedRuntimeMissingException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Deployment.Application.SupportedRuntimeMissingException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

Parameters

serializationInfo
SerializationInfo

The object that holds the serialized object data.

streamingContext
StreamingContext

The contextual information about the source or destination.

Remarks

This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.

Applies to

SupportedRuntimeMissingException(String, Exception)

Initializes a new instance of the SupportedRuntimeMissingException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public:
 SupportedRuntimeMissingException(System::String ^ message, Exception ^ innerException);
public SupportedRuntimeMissingException (string message, Exception innerException);
new System.Deployment.Application.SupportedRuntimeMissingException : string * Exception -> System.Deployment.Application.SupportedRuntimeMissingException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

innerException
Exception

The exception that is the cause of the current exception. If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.

Remarks

An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor, or null if the InnerException property does not supply the inner exception value to the constructor.

The following table shows the initial property values for an instance of SupportedRuntimeMissingException.

Property Value
InnerException null.
Message The error message string specified in message.

See also

Applies to