EntityCommandExecutionException 构造函数

定义

初始化 EntityCommandExecutionException 的新实例。Initializes a new instance of EntityCommandExecutionException.

重载

EntityCommandExecutionException()

初始化 EntityCommandExecutionException 的新实例。Initializes a new instance of EntityCommandExecutionException.

EntityCommandExecutionException(String)

初始化 EntityCommandExecutionException 的新实例。Initializes a new instance of EntityCommandExecutionException.

EntityCommandExecutionException(String, Exception)

初始化 EntityCommandExecutionException 的新实例。Initializes a new instance of EntityCommandExecutionException.

注解

有关如何处理代码异常的更多信息,请参见 ExceptionFor more information about how to handle code exceptions, see Exception.

EntityCommandExecutionException()

初始化 EntityCommandExecutionException 的新实例。Initializes a new instance of EntityCommandExecutionException.

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

注解

有关如何处理代码异常的更多信息,请参见 ExceptionFor more information about how to handle code exceptions, see Exception.

适用于

EntityCommandExecutionException(String)

初始化 EntityCommandExecutionException 的新实例。Initializes a new instance of 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

描述错误的消息。The message that describes the error.

注解

有关如何处理代码异常的更多信息,请参见 ExceptionFor more information about how to handle code exceptions, see Exception.

适用于

EntityCommandExecutionException(String, Exception)

初始化 EntityCommandExecutionException 的新实例。Initializes a new instance of 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

解释异常原因的错误消息。The error message that explains the reason for the exception.

innerException
Exception

导致当前异常的异常,或者,如果未指定任何内部异常,则为 null 引用(在 Visual Basic 中为 Nothing)。The exception that caused the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

注解

有关如何处理代码异常的更多信息,请参见 ExceptionFor more information about how to handle code exceptions, see Exception.

适用于