---
title: "SCDynamicStoreCopyLocation(_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scdynamicstorecopylocation(_:)"
---

# SCDynamicStoreCopyLocation(_:)

Returns the current location identifier.

## Declaration

```swift
func SCDynamicStoreCopyLocation(_ store: SCDynamicStore?) -> CFString?
```

## Parameters

- `store`: The dynamic store session that should be used for communication with the server. Pass NULL to use a temporary session.

## Return Value

Return Value Returns the current location identifier, or NULL if no location identifier has been defined or if an error occurred. You must release the returned value.

## See Also

### Group

- [SCDynamicStoreCopyComputerName(_:_:)](systemconfiguration/scdynamicstorecopycomputername(_:_:).md)
- [SCDynamicStoreCopyConsoleUser(_:_:_:)](systemconfiguration/scdynamicstorecopyconsoleuser(_:_:_:).md)
- [SCDynamicStoreCopyLocalHostName(_:)](systemconfiguration/scdynamicstorecopylocalhostname(_:).md)
- [SCDynamicStoreCopyProxies(_:)](systemconfiguration/scdynamicstorecopyproxies(_:).md)
