MonobjcMonobjc Documented Class Library
EntityForNameInManagedObjectContext Method (entityName, context)
NamespacesMonobjc.CoreDataNSEntityDescriptionEntityForNameInManagedObjectContext(NSString, NSManagedObjectContext)

Returns the entity with the specified name from the managed object model associated with the specified managed object context’s persistent store coordinator.

Original signature is '+ (NSEntityDescription *)entityForName:(NSString *)entityName inManagedObjectContext:(NSManagedObjectContext *)context'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSEntityDescription EntityForNameInManagedObjectContext(
	NSString entityName,
	NSManagedObjectContext context
)
Public Shared Function EntityForNameInManagedObjectContext ( _
	entityName As NSString, _
	context As NSManagedObjectContext _
) As NSEntityDescription
public:
static NSEntityDescription^ EntityForNameInManagedObjectContext(
	NSString^ entityName, 
	NSManagedObjectContext^ context
)
Parameters
entityName (NSString)
The name of an entity.
context (NSManagedObjectContext)
The managed object context to use.
Return Value
The entity with the specified name from the managed object model associated with context’s persistent store coordinator.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

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