共用方式為


EntityCommandExecutionException 建構函式

定義

初始化 EntityCommandExecutionException 的新執行個體。

多載

EntityCommandExecutionException()

初始化 EntityCommandExecutionException 的新執行個體。

EntityCommandExecutionException(String)

初始化 EntityCommandExecutionException 的新執行個體。

EntityCommandExecutionException(String, Exception)

初始化 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 參考 (Visual Basic 中為 Nothing)。

備註

如需如何處理程式碼例外狀況的詳細資訊,請參閱 Exception

適用於