---
title: "SCDynamicStoreSetValue(_:_:_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scdynamicstoresetvalue(_:_:_:)"
---

# SCDynamicStoreSetValue(_:_:_:)

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

## Declaration

```swift
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

Return Value TRUE if the key was updated; otherwise, FALSE.

## See Also

### Adding or Updating Keys and Values

- [SCDynamicStoreAddTemporaryValue(_:_:_:)](systemconfiguration/scdynamicstoreaddtemporaryvalue(_:_:_:).md)
- [SCDynamicStoreAddValue(_:_:_:)](systemconfiguration/scdynamicstoreaddvalue(_:_:_:).md)
- [SCDynamicStoreSetMultiple(_:_:_:_:)](systemconfiguration/scdynamicstoresetmultiple(_:_:_:_:).md)
