EntityCommandExecutionException 构造函数

定义

重载

EntityCommandExecutionException()

初始化 EntityCommandExecutionException 的新实例。

public EntityCommandExecutionException();
Public Sub New ()

适用于

EntityCommandExecutionException(String)

初始化 EntityCommandExecutionException 的新实例。

public EntityCommandExecutionException(string message);
new System.Data.Entity.Core.EntityCommandExecutionException : string -> System.Data.Entity.Core.EntityCommandExecutionException
Public Sub New (message As String)

参数

message
String

描述错误的消息。

适用于

EntityCommandExecutionException(String, Exception)

初始化 EntityCommandExecutionException 的新实例。

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

参数

message
String

解释异常原因的错误消息。

innerException
Exception

导致当前异常的异常,如果未指定内部异常,则为一个 null 引用(在 Visual Basic 中为 Nothing)。

适用于