EntityCommandCompilationException 建構函式

定義

初始化 EntityCommandCompilationException 的新執行個體。

多載

EntityCommandCompilationException()

初始化 EntityCommandCompilationException 的新執行個體。

EntityCommandCompilationException(String)

初始化 EntityCommandCompilationException 的新執行個體。

EntityCommandCompilationException(String, Exception)

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

備註

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

適用於