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

# SCNetworkSetGetServiceOrder(_:)

Returns the user-specified ordering of network services within the specified set.

```
func SCNetworkSetGetServiceOrder(_ set: SCNetworkSet) -> CFArray?
```

## Parameters

`set`

The set (the complete configuration for a single location).

## Return Value

The ordered list of service identifiers associated with the set, or `NULL` if no service order has been specified or if an error occurred.

## 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)