---
title: "SCNetworkConnectionCopyServiceID(_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scnetworkconnectioncopyserviceid(_:)"
---

# SCNetworkConnectionCopyServiceID(_:)

Returns the service ID associated with the specified network connection.

## Declaration

```swift
func SCNetworkConnectionCopyServiceID(_ connection: SCNetworkConnection) -> CFString?
```

## Parameters

- `connection`: The network connection.

## Return Value

Return Value The service ID associated with the network connection.

## See Also

### Getting Connection-Status Information

- [SCNetworkConnectionGetTypeID()](systemconfiguration/scnetworkconnectiongettypeid().md)
- [SCNetworkConnectionCopyUserPreferences(_:_:_:)](systemconfiguration/scnetworkconnectioncopyuserpreferences(_:_:_:).md)
- [SCNetworkConnectionGetStatus(_:)](systemconfiguration/scnetworkconnectiongetstatus(_:).md)
- [SCNetworkConnectionCopyExtendedStatus(_:)](systemconfiguration/scnetworkconnectioncopyextendedstatus(_:).md)
- [SCNetworkConnectionCopyStatistics(_:)](systemconfiguration/scnetworkconnectioncopystatistics(_:).md)
- [SCNetworkConnectionCopyUserOptions(_:)](systemconfiguration/scnetworkconnectioncopyuseroptions(_:).md)
