EntityCommandExecutionException 构造函数

定义

初始化 的新 EntityCommandExecutionException实例。

重载

注解

有关如何处理代码异常的详细信息,请参阅 Exception

EntityCommandExecutionException()

初始化 的新 EntityCommandExecutionException实例。

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

注解

有关如何处理代码异常的详细信息,请参阅 Exception

适用于

EntityCommandExecutionException(String)

初始化 的新 EntityCommandExecutionException实例。

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

参数

message
String

描述错误的消息。

注解

有关如何处理代码异常的详细信息,请参阅 Exception

适用于

EntityCommandExecutionException(String, Exception)

初始化 的新 EntityCommandExecutionException实例。

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

参数

message
String

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

innerException
Exception

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

注解

有关如何处理代码异常的详细信息,请参阅 Exception

适用于