NSEntityDescription.InsertNewObjectForEntityForName 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将新的 插入到指定的托管对象 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
- context
- NSManagedObjectContext
返回
- 属性