NSEntityDescription.InsertNewObjectForEntityForName 方法

定义

将新的 插入到指定的托管对象 context 中,并使用指定的 entityName键对其进行键。

[Foundation.Export("insertNewObjectForEntityForName:inManagedObjectContext:")]
public static Foundation.NSObject InsertNewObjectForEntityForName (string entityName, CoreData.NSManagedObjectContext context);
static member InsertNewObjectForEntityForName : string * CoreData.NSManagedObjectContext -> Foundation.NSObject

参数

entityName
String

返回

属性

适用于