Udostępnij za pośrednictwem


DependentPlatformMissingException Constructors

Definition

Initializes a new instance of the DependentPlatformMissingException class.

Overloads

DependentPlatformMissingException()

Initializes a new instance of the DependentPlatformMissingException class.

DependentPlatformMissingException(String)

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

DependentPlatformMissingException(SerializationInfo, StreamingContext)

Initializes a new instance of the DependentPlatformMissingException class.

DependentPlatformMissingException(String, Exception)

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

DependentPlatformMissingException(String, Uri)

Initializes a new instance of the DependentPlatformMissingException class.

DependentPlatformMissingException()

Initializes a new instance of the DependentPlatformMissingException class.

public:
 DependentPlatformMissingException();
public DependentPlatformMissingException ();
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 "DefaultMessageDisplayedByParameterlessCtorWriterMustSupply". This message takes into account the current system culture.

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

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

See also

Applies to

DependentPlatformMissingException(String)

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

public:
 DependentPlatformMissingException(System::String ^ message);
public DependentPlatformMissingException (string message);
new System.Deployment.Application.DependentPlatformMissingException : string -> System.Deployment.Application.DependentPlatformMissingException
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 DependentPlatformMissingException.

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

See also

Applies to

DependentPlatformMissingException(SerializationInfo, StreamingContext)

Initializes a new instance of the DependentPlatformMissingException class.

protected:
 DependentPlatformMissingException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected DependentPlatformMissingException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Deployment.Application.DependentPlatformMissingException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Deployment.Application.DependentPlatformMissingException
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.

See also

Applies to

DependentPlatformMissingException(String, Exception)

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

public:
 DependentPlatformMissingException(System::String ^ message, Exception ^ innerException);
public DependentPlatformMissingException (string message, Exception innerException);
new System.Deployment.Application.DependentPlatformMissingException : string * Exception -> System.Deployment.Application.DependentPlatformMissingException
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 to 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 DependentPlatformMissingException.

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

See also

Applies to

DependentPlatformMissingException(String, Uri)

Initializes a new instance of the DependentPlatformMissingException class.

public:
 DependentPlatformMissingException(System::String ^ message, Uri ^ supportUrl);
public DependentPlatformMissingException (string message, Uri supportUrl);
new System.Deployment.Application.DependentPlatformMissingException : string * Uri -> System.Deployment.Application.DependentPlatformMissingException
Public Sub New (message As String, supportUrl As Uri)

Parameters

message
String

The exception message.

supportUrl
Uri

The URL to visit for product support information.

Applies to