---
title: volumeIdentifier
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlresourcevalues/volumeidentifier
---

# volumeIdentifier

An identifier that identifies the volume the file system object is on.

## Declaration

```swift
var volumeIdentifier: (any NSCopying & NSSecureCoding & NSObjectProtocol)? { get }
```

## Discussion

Discussion Other objects on the same volume will have the same volume identifier and can be compared using for equality using isEqual. This identifier is not persistent across system restarts.

## See Also

### Volume support values

- [isMountTrigger](foundation/urlresourcevalues/ismounttrigger.md)
- [isVolume](foundation/urlresourcevalues/isvolume.md)
- [volume](foundation/urlresourcevalues/volume.md)
- [volumeCreationDate](foundation/urlresourcevalues/volumecreationdate.md)
- [volumeLocalizedFormatDescription](foundation/urlresourcevalues/volumelocalizedformatdescription.md)
- [volumeLocalizedName](foundation/urlresourcevalues/volumelocalizedname.md)
- [volumeMaximumFileSize](foundation/urlresourcevalues/volumemaximumfilesize.md)
- [volumeName](foundation/urlresourcevalues/volumename.md)
- [volumeResourceCount](foundation/urlresourcevalues/volumeresourcecount.md)
- [volumeSupportsAccessPermissions](foundation/urlresourcevalues/volumesupportsaccesspermissions.md)
- [volumeSupportsAdvisoryFileLocking](foundation/urlresourcevalues/volumesupportsadvisoryfilelocking.md)
- [volumeSupportsCasePreservedNames](foundation/urlresourcevalues/volumesupportscasepreservednames.md)
- [volumeSupportsCaseSensitiveNames](foundation/urlresourcevalues/volumesupportscasesensitivenames.md)
- [volumeSupportsCompression](foundation/urlresourcevalues/volumesupportscompression.md)
- [volumeSupportsExclusiveRenaming](foundation/urlresourcevalues/volumesupportsexclusiverenaming.md)
