<!--
{
  "availability" : [
    "macOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SystemConfiguration",
  "identifier" : "/documentation/SystemConfiguration/SCNetworkSetCopyAll(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "System Configuration"
    ],
    "preciseIdentifier" : "c:@F@SCNetworkSetCopyAll"
  },
  "title" : "SCNetworkSetCopyAll(_:)"
}
-->

# SCNetworkSetCopyAll(_:)

Returns all available sets for the specified preferences session.

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

## Parameters

`prefs`

The preferences session.

## Return Value

The list of network sets associated with the preferences. You must release the returned value.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)