---
title: name
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nspersistentcontainer/name
---

# name

The container’s name.

## Declaration

```swift
var name: String { get }
```

## Discussion

Discussion This property is passed in as part of the initialization of the persistent container. This name is used to locate the NSManagedObjectModel (if the NSManagedObjectModel object is not passed in as part of the initialization) and is used to name the persistent store.

## See Also

### Getting the Container’s Configuration

- [managedObjectModel](coredata/nspersistentcontainer/managedobjectmodel.md)
- [persistentStoreCoordinator](coredata/nspersistentcontainer/persistentstorecoordinator.md)
