---
title: dictionaryRepresentation
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsubiquitouskeyvaluestore/dictionaryrepresentation
---

# dictionaryRepresentation

A dictionary with all of the key-value pairs in the iCloud key-value store.

## Declaration

```swift
var dictionaryRepresentation: [String : Any] { get }
```

## Discussion

Discussion Getting this property retrieves the in-memory copy of the keys and values. If changes to the keys and values are pending, the system fetches those changes from iCloud and updates the dictionary before returning it. To ensure the dictionary contains all recent changes, call synchronize() shortly before accessing this property. All of the values in the dictionary are property list object types.

## See Also

### Getting values

- [bool(forKey:)](foundation/nsubiquitouskeyvaluestore/bool(forkey:).md)
- [double(forKey:)](foundation/nsubiquitouskeyvaluestore/double(forkey:).md)
- [longLong(forKey:)](foundation/nsubiquitouskeyvaluestore/longlong(forkey:).md)
- [string(forKey:)](foundation/nsubiquitouskeyvaluestore/string(forkey:).md)
- [data(forKey:)](foundation/nsubiquitouskeyvaluestore/data(forkey:).md)
- [object(forKey:)](foundation/nsubiquitouskeyvaluestore/object(forkey:).md)
- [array(forKey:)](foundation/nsubiquitouskeyvaluestore/array(forkey:).md)
- [dictionary(forKey:)](foundation/nsubiquitouskeyvaluestore/dictionary(forkey:).md)
