DbUpdateException クラス
[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]
変更をデータベースに保存できなかったとき、DbContext によってスローされる例外です。 この例外によって参照される状態エントリは、セキュリティ保護のためにシリアル化されていないことに注意してください。シリアル化の後に状態エントリにアクセスすると null が返されます。
継承階層
System.Object
System.Exception
System.SystemException
System.Data.DataException
System.Data.Entity.Infrastructure.DbUpdateException
System.Data.Entity.Infrastructure.DbUpdateConcurrencyException
名前空間: System.Data.Entity.Infrastructure
アセンブリ: EntityFramework (EntityFramework.dll 内)
構文
'宣言
<SerializableAttribute> _
<SuppressMessageAttribute("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification := "SerializeObjectState used instead")> _
Public Class DbUpdateException _
Inherits DataException
'使用
Dim instance As DbUpdateException
[SerializableAttribute]
[SuppressMessageAttribute("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification = "SerializeObjectState used instead")]
public class DbUpdateException : DataException
[SerializableAttribute]
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1032:ImplementStandardExceptionConstructors", Justification = L"SerializeObjectState used instead")]
public ref class DbUpdateException : public DataException
[<SerializableAttribute>]
[<SuppressMessageAttribute("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification = "SerializeObjectState used instead")>]
type DbUpdateException =
class
inherit DataException
end
public class DbUpdateException extends DataException
DbUpdateException 型で公開されるメンバーは以下のとおりです。
コンストラクター
名前 | 説明 | |
---|---|---|
DbUpdateException() | DbUpdateException クラスの新しいインスタンスを初期化します。 | |
DbUpdateException(String) | DbUpdateException クラスの新しいインスタンスを初期化します。 | |
DbUpdateException(String, Exception) | DbUpdateException クラスの新しいインスタンスを初期化します。 |
上揃え
プロパティ
名前 | 説明 | |
---|---|---|
Data | (Exception から継承されます。) | |
Entries | データベースに保存できなかったエンティティを表す DbEntityEntry オブジェクトを取得します。 | |
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 から継承されます。) |
上揃え
スレッド セーフ
この型のすべてのパブリック static (Visual Basic では Shared) メンバーは、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。