Share via


MigrationsException Constructors

Definition

Overloads

MigrationsException()

Initializes a new instance of the MigrationsException class.

MigrationsException(String)

Initializes a new instance of the MigrationsException class.

MigrationsException(SerializationInfo, StreamingContext)

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

MigrationsException(String, Exception)

Initializes a new instance of the MigrationsException class.

MigrationsException()

Initializes a new instance of the MigrationsException class.

public MigrationsException ();
Public Sub New ()

Applies to

MigrationsException(String)

Initializes a new instance of the MigrationsException class.

public MigrationsException (string message);
new System.Data.Entity.Migrations.Infrastructure.MigrationsException : string -> System.Data.Entity.Migrations.Infrastructure.MigrationsException
Public Sub New (message As String)

Parameters

message
String

The message that describes the error.

Applies to

MigrationsException(SerializationInfo, StreamingContext)

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

protected MigrationsException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Data.Entity.Migrations.Infrastructure.MigrationsException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.Entity.Migrations.Infrastructure.MigrationsException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Applies to

MigrationsException(String, Exception)

Initializes a new instance of the MigrationsException class.

public MigrationsException (string message, Exception innerException);
new System.Data.Entity.Migrations.Infrastructure.MigrationsException : string * Exception -> System.Data.Entity.Migrations.Infrastructure.MigrationsException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The message that describes the error.

innerException
Exception

The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

Applies to