---
title: "SCDynamicStoreCopyValue(_:_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scdynamicstorecopyvalue(_:_:)"
---

# SCDynamicStoreCopyValue(_:_:)

Returns the value associated with the specified key.

## Declaration

```swift
func SCDynamicStoreCopyValue(_ store: SCDynamicStore?, _ key: CFString) -> CFPropertyList?
```

## Parameters

- `store`: The dynamic store session.
- `key`: The key associated with the desired value.

## Return Value

Return Value The value associated with the specified key, or NULL if no value was located or if an error occurred. You must release the returned value.

## See Also

### Getting Keys and Values

- [SCDynamicStoreCopyKeyList(_:_:)](systemconfiguration/scdynamicstorecopykeylist(_:_:).md)
- [SCDynamicStoreCopyMultiple(_:_:_:)](systemconfiguration/scdynamicstorecopymultiple(_:_:_:).md)
- [SCDynamicStoreCopyNotifiedKeys(_:)](systemconfiguration/scdynamicstorecopynotifiedkeys(_:).md)
