NSPersistentContainer.GetPersistentContainer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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