---
title: versionHash
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nspropertydescription/versionhash
---

# versionHash

The version hash for the receiver.

## Declaration

```swift
var versionHash: Data { get }
```

## Discussion

Discussion The version hash is used to uniquely identify a property based on its configuration. The version hash uses only values which affect the persistence of data and the user-defined versionHashModifier value. (The values which affect persistence are the name of the property, and the flags for isOptional, isTransient, and isReadOnly.) This value is stored as part of the version information in the metadata for stores, as well as a definition of a property involved in an NSPropertyMapping object.

## See Also

### Supporting Versioning

- [versionHashModifier](coredata/nspropertydescription/versionhashmodifier.md)
- [renamingIdentifier](coredata/nspropertydescription/renamingidentifier.md)
