Edytuj

Udostępnij za pośrednictwem


NSManagedObjectContext.GetExistingObject(NSManagedObjectID, NSError) Method

Definition

Fetches an object with a specified id.

[Foundation.Export("existingObjectWithID:error:")]
public virtual CoreData.NSManagedObject GetExistingObject (CoreData.NSManagedObjectID objectID, out Foundation.NSError error);
abstract member GetExistingObject : CoreData.NSManagedObjectID *  -> CoreData.NSManagedObject
override this.GetExistingObject : CoreData.NSManagedObjectID *  -> CoreData.NSManagedObject

Parameters

objectID
NSManagedObjectID

The object ID of object to fetch.

error
NSError

On error, this will contain the error information.

Returns

The object with the associated ID, or null if the object does not exist, or can not be retrieved.

Attributes

Applies to