MigrationsException Constructor

 

Initializes a new instance of the MigrationsException class.

Namespace:   System.Data.Entity.Migrations.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodMigrationsException()

Initializes a new instance of the MigrationsException class.

System_CAPS_protmethodMigrationsException(SerializationInfo, StreamingContext)

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

System_CAPS_pubmethodMigrationsException(String)

Initializes a new instance of the MigrationsException class.

System_CAPS_pubmethodMigrationsException(String, Exception)

Initializes a new instance of the MigrationsException class.


MigrationsException Constructor ()

Initializes a new instance of the MigrationsException class.

public MigrationsException()

MigrationsException Constructor (SerializationInfo, StreamingContext)

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

protected MigrationsException(
	SerializationInfo info,
	StreamingContext context
)

Parameters

info
Type: System.Runtime.Serialization.SerializationInfo

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

context
Type: System.Runtime.Serialization.StreamingContext

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


MigrationsException Constructor (String)

Initializes a new instance of the MigrationsException class.

public MigrationsException(
	string message
)

Parameters

message
Type: System.String

The message that describes the error.


MigrationsException Constructor (String, Exception)

Initializes a new instance of the MigrationsException class.

public MigrationsException(
	string message,
	Exception innerException
)

Parameters

message
Type: System.String

The message that describes the error.

innerException
Type: System.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.