---
title: "SCDynamicStoreCopyMultiple(_:_:_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scdynamicstorecopymultiple(_:_:_:)"
---

# SCDynamicStoreCopyMultiple(_:_:_:)

Returns the key-value pairs that match the specified keys and key patterns.

## Declaration

```swift
func SCDynamicStoreCopyMultiple(_ store: SCDynamicStore?, _ keys: CFArray?, _ patterns: CFArray?) -> CFDictionary?
```

## Parameters

- `store`: The dynamic store session.
- `keys`: The keys associated with the desired values or NULL if no specific keys are requested.
- `patterns`: An array of regex(3) pattern strings used to match the keys, or NULL if no key patterns are requested.

## Return Value

Return Value A dictionary of key-value pairs that match the specified keys and key patterns, or NULL if an error occurred. You must release the returned value.

## See Also

### Getting Keys and Values

- [SCDynamicStoreCopyKeyList(_:_:)](systemconfiguration/scdynamicstorecopykeylist(_:_:).md)
- [SCDynamicStoreCopyNotifiedKeys(_:)](systemconfiguration/scdynamicstorecopynotifiedkeys(_:).md)
- [SCDynamicStoreCopyValue(_:_:)](systemconfiguration/scdynamicstorecopyvalue(_:_:).md)
