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

# SCDynamicStoreAddTemporaryValue(_:_:_:)

Temporarily adds the specified key-value pair to the dynamic store, if no such key already exists.

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

## Parameters

`store`

The dynamic store session.

`key`

The key of the value to add to the dynamic store.

`value`

The value to add to the dynamic store.

## Return Value

`TRUE` if the key was added; `FALSE` if the key was already present in the dynamic store or if an error occurred.

## Discussion

Unless the key is updated by another session, the key-value pair added by this function is removed automatically when the session is closed.

---

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)