---
title: "SCPreferencesPathGetLink(_:_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scpreferencespathgetlink(_:_:)"
---

# SCPreferencesPathGetLink(_:_:)

Returns the link associated with the specified path.

## Declaration

```swift
func SCPreferencesPathGetLink(_ prefs: SCPreferences, _ path: CFString) -> CFString?
```

## Parameters

- `prefs`: The preferences session.
- `path`: The path.

## Return Value

Return Value The link associated with the specified path, or NULL if the path is not a link or does not exist.

## See Also

### Getting or Removing Information Associated with a Path

- [SCPreferencesPathGetValue(_:_:)](systemconfiguration/scpreferencespathgetvalue(_:_:).md)
- [SCPreferencesPathRemoveValue(_:_:)](systemconfiguration/scpreferencespathremovevalue(_:_:).md)
