---
title: "SCDynamicStoreCopyKeyList(_:_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scdynamicstorecopykeylist(_:_:)"
---

# SCDynamicStoreCopyKeyList(_:_:)

Returns the keys that represent the current dynamic store entries that match the specified pattern.

## Declaration

```swift
func SCDynamicStoreCopyKeyList(_ store: SCDynamicStore?, _ pattern: CFString) -> CFArray?
```

## Parameters

- `store`: The dynamic store session.
- `pattern`: A regex(3) regular expression pattern used to match the dynamic store keys.

## Return Value

Return Value An array of matching keys, or NULL if an error occurred. You must release the returned value.

## See Also

### Getting Keys and Values

- [SCDynamicStoreCopyMultiple(_:_:_:)](systemconfiguration/scdynamicstorecopymultiple(_:_:_:).md)
- [SCDynamicStoreCopyNotifiedKeys(_:)](systemconfiguration/scdynamicstorecopynotifiedkeys(_:).md)
- [SCDynamicStoreCopyValue(_:_:)](systemconfiguration/scdynamicstorecopyvalue(_:_:).md)
