共用方式為


UpdateException 建構函式

定義

初始化 UpdateException 的新執行個體。

多載

UpdateException()

初始化 UpdateException 的新執行個體。

UpdateException(String)

使用特定的錯誤訊息,初始化 UpdateException 的新執行個體。

UpdateException(SerializationInfo, StreamingContext)

用序列化資料初始化 UpdateException 的新執行個體。

UpdateException(String, Exception)

初始化 UpdateException 類別的新執行個體,它會使用指定的錯誤訊息以及造成此例外狀況之內部例外的參考。

UpdateException(String, Exception, IEnumerable<ObjectStateEntry>)

初始化使用所指定錯誤訊息、內部例外狀況參考,及可列舉 UpdateException 物件集合的 ObjectStateEntry 類別的新執行個體。

備註

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

UpdateException()

初始化 UpdateException 的新執行個體。

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

備註

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

適用於

UpdateException(String)

使用特定的錯誤訊息,初始化 UpdateException 的新執行個體。

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

參數

message
String

描述錯誤的訊息。

備註

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

適用於

UpdateException(SerializationInfo, StreamingContext)

用序列化資料初始化 UpdateException 的新執行個體。

protected:
 UpdateException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected UpdateException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Data.UpdateException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.UpdateException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

SerializationInfo,包含所擲回之例外狀況的相關序列化物件資料。

context
StreamingContext

包含有關來源或目的端內容資訊的 StreamingContext

備註

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

適用於

UpdateException(String, Exception)

初始化 UpdateException 類別的新執行個體,它會使用指定的錯誤訊息以及造成此例外狀況之內部例外的參考。

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

參數

message
String

解釋例外狀況原因的錯誤訊息。

innerException
Exception

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

備註

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

適用於

UpdateException(String, Exception, IEnumerable<ObjectStateEntry>)

初始化使用所指定錯誤訊息、內部例外狀況參考,及可列舉 UpdateException 物件集合的 ObjectStateEntry 類別的新執行個體。

public:
 UpdateException(System::String ^ message, Exception ^ innerException, System::Collections::Generic::IEnumerable<System::Data::Objects::ObjectStateEntry ^> ^ stateEntries);
public UpdateException (string message, Exception innerException, System.Collections.Generic.IEnumerable<System.Data.Objects.ObjectStateEntry> stateEntries);
new System.Data.UpdateException : string * Exception * seq<System.Data.Objects.ObjectStateEntry> -> System.Data.UpdateException
Public Sub New (message As String, innerException As Exception, stateEntries As IEnumerable(Of ObjectStateEntry))

參數

message
String

解釋例外狀況原因的錯誤訊息。

innerException
Exception

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

stateEntries
IEnumerable<ObjectStateEntry>

ObjectStateEntry 物件的集合。

備註

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

適用於