---
title: metadata
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nspersistentstore/metadata
---

# metadata

The metadata for the persistent store.

## Declaration

```swift
var metadata: [String : Any]! { get set }
```

## Discussion

Discussion The dictionary must include the store type (NSStoreTypeKey) and UUID (NSStoreUUIDKey). Special Considerations Subclasses must override this property to provide storage and persistence for the store metadata.

## See Also

### Managing Store Metadata

- [metadataForPersistentStore(with:)](coredata/nspersistentstore/metadataforpersistentstore(with:).md)
- [setMetadata(_:forPersistentStoreAt:)](coredata/nspersistentstore/setmetadata(_:forpersistentstoreat:).md)
- [loadMetadata()](coredata/nspersistentstore/loadmetadata().md)
