EntityCommandCompilationException 建構函式

定義

初始化 EntityCommandCompilationException 的新執行個體。

多載

備註

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

EntityCommandCompilationException()

初始化 EntityCommandCompilationException 的新執行個體。

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

備註

欲了解更多如何處理例外程式碼的資訊,請參閱 Exception

適用於

EntityCommandCompilationException(String)

初始化 EntityCommandCompilationException 的新執行個體。

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

參數

message
String

描述錯誤的訊息。

備註

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

適用於

EntityCommandCompilationException(String, Exception)

初始化 EntityCommandCompilationException 的新執行個體。

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

參數

message
String

說明例外狀況原因的錯誤訊息。

innerException
Exception

造成當前例外的例外,或若未指定內部例外,則為null參考(Nothing,Visual Basic中為此)。

備註

欲了解更多如何處理例外程式碼的資訊,請參閱 Exception

適用於