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

# SCNetworkSetSetName(_:_:)

Stores the user-specified name for the specified set.

```
func SCNetworkSetSetName(_ set: SCNetworkSet, _ name: CFString?) -> Bool
```

## Parameters

`set`

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

`name`

The user-defined name to associate with the set.

## Return Value

`TRUE` if the name was saved; `FALSE` if an error occurred.

## Discussion

Although it is not technically required, the user-specified names for all sets should be unique. For this reason, an error is returned if you attempt to name two sets with the same string.

---

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)