---
title: persistentIdentifier
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsfileversion/persistentidentifier
---

# persistentIdentifier

The identifier for this version of the file.

## Declaration

```swift
var persistentIdentifier: any NSCoding { get }
```

## Discussion

Discussion You can save the value of this property persistently and use it to recreate the version object later. When recreating the version object using the version(itemAt:forPersistentIdentifier:) method, the version object returned is equivalent to the current object.

## See Also

### Accessing the Version Information

- [url](foundation/nsfileversion/url.md)
- [localizedName](foundation/nsfileversion/localizedname.md)
- [localizedNameOfSavingComputer](foundation/nsfileversion/localizednameofsavingcomputer.md)
- [modificationDate](foundation/nsfileversion/modificationdate.md)
- [isDiscardable](foundation/nsfileversion/isdiscardable.md)
