Edytuj

Udostępnij za pośrednictwem


NSPersistentContainer.GetPersistentContainer Method

Definition

Overloads

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:")]
public static CoreData.NSPersistentContainer GetPersistentContainer (string name);
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:")]
public static CoreData.NSPersistentContainer GetPersistentContainer (string name, CoreData.NSManagedObjectModel model);
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