Share via


NSPersistentContainer.GetPersistentContainer Method

Definition

Overloads

Name Description
GetPersistentContainer(String)

Creates a persistent container with the specified name.

GetPersistentContainer(String, NSManagedObjectModel)

Creates a persistent container with the specified name and object model.

GetPersistentContainer(String)

Creates a persistent container with the specified name.

[Foundation.Export("persistentContainerWithName:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static CoreData.NSPersistentContainer GetPersistentContainer(string name);
[<Foundation.Export("persistentContainerWithName:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetPersistentContainer : string -> CoreData.NSPersistentContainer

Parameters

name
String

The name of the persistent container to create.

Returns

A persistent container with the specified name.

Attributes

Applies to

GetPersistentContainer(String, NSManagedObjectModel)

Creates a persistent container with the specified name and object model.

[Foundation.Export("persistentContainerWithName:managedObjectModel:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static CoreData.NSPersistentContainer GetPersistentContainer(string name, CoreData.NSManagedObjectModel model);
[<Foundation.Export("persistentContainerWithName:managedObjectModel:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetPersistentContainer : string * CoreData.NSManagedObjectModel -> CoreData.NSPersistentContainer

Parameters

name
String

The name of the persistent container to create.

model
NSManagedObjectModel

The object model for the persistent container to create.

Returns

Attributes

Applies to