Op Englesch liesen Editéieren

Deelen iwwer


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.

C#
[Foundation.Export("persistentContainerWithName:")]
public static CoreData.NSPersistentContainer GetPersistentContainer (string name);

Parameters

name
String

The name of the persistent container to create.

Returns

A persistent container with the specified name.

Attributes

Applies to

Xamarin.Mac SDK 14
Produkt Versiounen
Xamarin.Mac SDK 14

GetPersistentContainer(String, NSManagedObjectModel)

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

C#
[Foundation.Export("persistentContainerWithName:managedObjectModel:")]
public static CoreData.NSPersistentContainer GetPersistentContainer (string name, CoreData.NSManagedObjectModel model);

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

Xamarin.Mac SDK 14
Produkt Versiounen
Xamarin.Mac SDK 14