ObjectContext.ApplyPropertyChanges(String, Object) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
注意事項
Use ApplyCurrentValues instead
デタッチされたオブジェクトから、オブジェクト コンテキストに既にアタッチされているオブジェクトにプロパティの変更を適用します。
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Use ApplyCurrentValues instead")]
public virtual void ApplyPropertyChanges(string entitySetName, object changed);
abstract member ApplyPropertyChanges : string * obj -> unit
override this.ApplyPropertyChanges : string * obj -> unit
Public Overridable Sub ApplyPropertyChanges (entitySetName As String, changed As Object)
パラメーター
- entitySetName
- String
オブジェクトが属するエンティティ セットの名前。
- changed
- Object
元のオブジェクトに適用するプロパティの更新があるデタッチされたオブジェクト。
- 属性
例外
entitySetName が null または空の文字列の場合、または変更された場合は null です。
entitySetName からのEntitySetがオブジェクト EntityKeyのEntitySetと一致しない場合、またはエンティティがModifiedまたはUnchanged以外の状態にある場合、または元のオブジェクトがコンテキストにアタッチされていない場合。
変更されたオブジェクトの型が元のオブジェクトと同じ型でない場合。