MonobjcMonobjc Documented Class Library
ExistingObjectWithIDError Method (objectID, error)
NamespacesMonobjc.CoreDataNSManagedObjectContextExistingObjectWithIDError(NSManagedObjectID, NSError%)

Returns the object for the specified ID.

Original signature is '- (NSManagedObject *)existingObjectWithID:(NSManagedObjectID *)objectID error:(NSError **)error'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSManagedObject ExistingObjectWithIDError(
	NSManagedObjectID objectID,
	out NSError error
)
Public Overridable Function ExistingObjectWithIDError ( _
	objectID As NSManagedObjectID, _
	<OutAttribute> ByRef error As NSError _
) As NSManagedObject
public:
virtual NSManagedObject^ ExistingObjectWithIDError(
	NSManagedObjectID^ objectID, 
	[OutAttribute] NSError^% error
)
Parameters
objectID (NSManagedObjectID)
The object ID for the requested object.
error (NSError%)
If there is a problem in retrieving the object specified by objectID, upon return contains an error that describes the problem.
Return Value
The object specified by objectID. If the object cannot be fetched, or does not exist, or cannot be faulted, it returns nil.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)