---
title: "SCNetworkSetCopy(_:_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scnetworksetcopy(_:_:)"
---

# SCNetworkSetCopy(_:_:)

Returns the set with the specified identifier.

## Declaration

```swift
func SCNetworkSetCopy(_ prefs: SCPreferences, _ setID: CFString) -> SCNetworkSet?
```

## Parameters

- `prefs`: The preferences session.
- `setID`: The unique identifier for the set.

## Return Value

Return Value The network set from the associated preferences, or NULL if the identifier does not exist in the preferences or if an error occurred. You must release the returned value.

## See Also

### Configuring Network Sets

- [SCNetworkSetAddService(_:_:)](systemconfiguration/scnetworksetaddservice(_:_:).md)
- [SCNetworkSetContainsInterface(_:_:)](systemconfiguration/scnetworksetcontainsinterface(_:_:).md)
- [SCNetworkSetCopyAll(_:)](systemconfiguration/scnetworksetcopyall(_:).md)
- [SCNetworkSetCopyCurrent(_:)](systemconfiguration/scnetworksetcopycurrent(_:).md)
- [SCNetworkSetCopyServices(_:)](systemconfiguration/scnetworksetcopyservices(_:).md)
- [SCNetworkSetCreate(_:)](systemconfiguration/scnetworksetcreate(_:).md)
- [SCNetworkSetGetName(_:)](systemconfiguration/scnetworksetgetname(_:).md)
- [SCNetworkSetGetServiceOrder(_:)](systemconfiguration/scnetworksetgetserviceorder(_:).md)
- [SCNetworkSetGetSetID(_:)](systemconfiguration/scnetworksetgetsetid(_:).md)
- [SCNetworkSetGetTypeID()](systemconfiguration/scnetworksetgettypeid().md)
- [SCNetworkSetRemove(_:)](systemconfiguration/scnetworksetremove(_:).md)
- [SCNetworkSetRemoveService(_:_:)](systemconfiguration/scnetworksetremoveservice(_:_:).md)
- [SCNetworkSetSetCurrent(_:)](systemconfiguration/scnetworksetsetcurrent(_:).md)
- [SCNetworkSetSetName(_:_:)](systemconfiguration/scnetworksetsetname(_:_:).md)
- [SCNetworkSetSetServiceOrder(_:_:)](systemconfiguration/scnetworksetsetserviceorder(_:_:).md)
