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,Visual Basic中為此)。

備註

欲了解更多如何處理程式碼異常的資訊,請參見 Exception

適用於