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

# SCDynamicStoreCopyKeyList(_:_:)

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

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

An array of matching keys, or `NULL` 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)