CommitFailedException 類別
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
認可 DbTransaction 發生錯誤時擲回的例外狀況。
繼承階層
System.Object
System.Exception
System.SystemException
System.Data.DataException
System.Data.Entity.Infrastructure.CommitFailedException
命名空間: System.Data.Entity.Infrastructure
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
<SerializableAttribute> _
Public Class CommitFailedException _
Inherits DataException
'用途
Dim instance As CommitFailedException
[SerializableAttribute]
public class CommitFailedException : DataException
[SerializableAttribute]
public ref class CommitFailedException : public DataException
[<SerializableAttribute>]
type CommitFailedException =
class
inherit DataException
end
public class CommitFailedException extends DataException
CommitFailedException 類型會公開下列成員。
建構函式
名稱 | 描述 | |
---|---|---|
![]() |
CommitFailedException() | 使用預設值初始化 CommitFailedException 的新執行個體。 |
![]() |
CommitFailedException(String) | 初始化 CommitFailedException 的新執行個體 (有錯誤訊息)。 |
![]() |
CommitFailedException(SerializationInfo, StreamingContext) | 使用序列化資料,初始化 CommitFailedException 類別的新執行個體。 |
![]() |
CommitFailedException(String, Exception) | 初始化 CommitFailedException 的新執行個體 (有錯誤訊息和內部例外狀況)。 |
靠上
屬性
名稱 | 描述 | |
---|---|---|
![]() |
Data | (繼承自 Exception)。 |
![]() |
HelpLink | (繼承自 Exception)。 |
![]() |
HResult | (繼承自 Exception)。 |
![]() |
InnerException | (繼承自 Exception)。 |
![]() |
Message | (繼承自 Exception)。 |
![]() |
Source | (繼承自 Exception)。 |
![]() |
StackTrace | (繼承自 Exception)。 |
![]() |
TargetSite | (繼承自 Exception)。 |
靠上
方法
名稱 | 描述 | |
---|---|---|
![]() |
Equals | (繼承自 Object)。 |
![]() |
Finalize | (繼承自 Object)。 |
![]() |
GetBaseException | (繼承自 Exception)。 |
![]() |
GetHashCode | (繼承自 Object)。 |
![]() |
GetObjectData | 安全性關鍵。 (繼承自 Exception)。 |
![]() |
GetType | (繼承自 Exception)。 |
![]() |
MemberwiseClone | (繼承自 Object)。 |
![]() |
ToString | (繼承自 Exception)。 |
靠上
事件
名稱 | 描述 | |
---|---|---|
![]() |
SerializeObjectState | (繼承自 Exception)。 |
靠上
執行緒安全
這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。並非所有的執行個體成員都是安全執行緒。