---
title: volatileDomainNames
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/userdefaults/volatiledomainnames
---

# volatileDomainNames

An array of identifiers for the volatile domains associated with the current object.

## Declaration

```swift
var volatileDomainNames: [String] { get }
```

## Discussion

Discussion Each string in the array corresponds to one of the volatile domains this UserDefaults object searches. To get the contents of one of these domains, call the volatileDomain(forName:) method.

## See Also

### Getting the domain names

- [argumentDomain](foundation/userdefaults/argumentdomain.md)
- [globalDomain](foundation/userdefaults/globaldomain.md)
- [registrationDomain](foundation/userdefaults/registrationdomain.md)
