EntityCommandExecutionException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 EntityCommandExecutionException 的新執行個體。
多載
| 名稱 | Description |
|---|---|
| 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參考(Nothing,Visual Basic中為此)。
備註
欲了解更多如何處理程式碼異常的資訊,請參見 Exception。