---
title: "SCNetworkServiceCopyAll(_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scnetworkservicecopyall(_:)"
---

# SCNetworkServiceCopyAll(_:)

Returns all available network services for the specified preferences.

## Declaration

```swift
func SCNetworkServiceCopyAll(_ prefs: SCPreferences) -> CFArray?
```

## Parameters

- `prefs`: The preferences session.

## Return Value

Return Value The list of network services associated with the preferences. You must release the returned value.

## See Also

### Configuring Network Services

- [SCNetworkServiceAddProtocolType(_:_:)](systemconfiguration/scnetworkserviceaddprotocoltype(_:_:).md)
- [SCNetworkServiceCopy(_:_:)](systemconfiguration/scnetworkservicecopy(_:_:).md)
- [SCNetworkServiceCopyProtocol(_:_:)](systemconfiguration/scnetworkservicecopyprotocol(_:_:).md)
- [SCNetworkServiceCopyProtocols(_:)](systemconfiguration/scnetworkservicecopyprotocols(_:).md)
- [SCNetworkServiceCreate(_:_:)](systemconfiguration/scnetworkservicecreate(_:_:).md)
- [SCNetworkServiceEstablishDefaultConfiguration(_:)](systemconfiguration/scnetworkserviceestablishdefaultconfiguration(_:).md)
- [SCNetworkServiceGetEnabled(_:)](systemconfiguration/scnetworkservicegetenabled(_:).md)
- [SCNetworkServiceGetInterface(_:)](systemconfiguration/scnetworkservicegetinterface(_:).md)
- [SCNetworkServiceGetName(_:)](systemconfiguration/scnetworkservicegetname(_:).md)
- [SCNetworkServiceGetServiceID(_:)](systemconfiguration/scnetworkservicegetserviceid(_:).md)
- [SCNetworkServiceGetTypeID()](systemconfiguration/scnetworkservicegettypeid().md)
- [SCNetworkServiceRemove(_:)](systemconfiguration/scnetworkserviceremove(_:).md)
- [SCNetworkServiceRemoveProtocolType(_:_:)](systemconfiguration/scnetworkserviceremoveprotocoltype(_:_:).md)
- [SCNetworkServiceSetEnabled(_:_:)](systemconfiguration/scnetworkservicesetenabled(_:_:).md)
- [SCNetworkServiceSetName(_:_:)](systemconfiguration/scnetworkservicesetname(_:_:).md)
