共用方式為


NSManagedObjectContext.ObserveValueForKeyPath 方法

定義

觀察提供的物件和索引鍵路徑所識別的變更。

[Foundation.Export("observeValueForKeyPath:ofObject:change:context:")]
public virtual void ObserveValueForKeyPath (string keyPath, IntPtr object1, Foundation.NSDictionary change, IntPtr context);
abstract member ObserveValueForKeyPath : string * nativeint * Foundation.NSDictionary * nativeint -> unit
override this.ObserveValueForKeyPath : string * nativeint * Foundation.NSDictionary * nativeint -> unit

參數

keyPath
String
object1
IntPtr

nativeint

change
NSDictionary

即將加入。

這個參數可以是 null

context
IntPtr

nativeint

屬性

適用於