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

# SCDynamicStoreSetValue(_:_:_:)

Adds or replaces a value in the dynamic store for the specified key.

```
func SCDynamicStoreSetValue(_ store: SCDynamicStore?, _ key: CFString, _ value: CFPropertyList) -> Bool
```

## Parameters

`store`

The dynamic store session.

`key`

The key associated with the value.

`value`

The value to add to or replace in the dynamic store.

## Return Value

`TRUE` if the key was updated; otherwise, `FALSE`.

## 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)