Compartilhar via


InvalidDeploymentException Constructors

Definition

Initializes a new instance of the InvalidDeploymentException class.

Overloads

InvalidDeploymentException()

Initializes a new instance of the InvalidDeploymentException class.

InvalidDeploymentException(String)

Initializes a new instance of the InvalidDeploymentException class with the specified message that describes the exception.

InvalidDeploymentException(SerializationInfo, StreamingContext)

Initializes a new instance of the InvalidDeploymentException class.

InvalidDeploymentException(String, Exception)

Initializes a new instance of the InvalidDeploymentException class.

InvalidDeploymentException()

Initializes a new instance of the InvalidDeploymentException class.

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

Applies to

InvalidDeploymentException(String)

Initializes a new instance of the InvalidDeploymentException class with the specified message that describes the exception.

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

Applies to

InvalidDeploymentException(SerializationInfo, StreamingContext)

Initializes a new instance of the InvalidDeploymentException class.

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

Applies to

InvalidDeploymentException(String, Exception)

Initializes a new instance of the InvalidDeploymentException class.

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

Applies to