<!--
{
  "availability" : [
    "macOS: 10.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SystemConfiguration",
  "identifier" : "/documentation/SystemConfiguration/SCDynamicStoreCopyValue(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "System Configuration"
    ],
    "preciseIdentifier" : "c:@F@SCDynamicStoreCopyValue"
  },
  "title" : "SCDynamicStoreCopyValue(_:_:)"
}
-->

# SCDynamicStoreCopyValue(_:_:)

Returns the value associated with the specified key.

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

## Parameters

`store`

The dynamic store session.

`key`

The key associated with the desired 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.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)