---
title: "SCNetworkConnectionCopyUserOptions(_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scnetworkconnectioncopyuseroptions(_:)"
---

# SCNetworkConnectionCopyUserOptions(_:)

Gets the user options used to start the specified connection.

## Declaration

```swift
func SCNetworkConnectionCopyUserOptions(_ connection: SCNetworkConnection) -> CFDictionary?
```

## Parameters

- `connection`: The network connection.

## Return Value

Return Value The service dictionary containing the connection options (the dictionary can be empty if no user options were used), or NULL if an error occurred (use the SCError() function to retrieve the specific error).

## Discussion

Discussion A client can call this function to retrieve the user options previously passed to the SCNetworkConnectionStart(_:_:_:) function.

## See Also

### Getting Connection-Status Information

- [SCNetworkConnectionGetTypeID()](systemconfiguration/scnetworkconnectiongettypeid().md)
- [SCNetworkConnectionCopyUserPreferences(_:_:_:)](systemconfiguration/scnetworkconnectioncopyuserpreferences(_:_:_:).md)
- [SCNetworkConnectionCopyServiceID(_:)](systemconfiguration/scnetworkconnectioncopyserviceid(_:).md)
- [SCNetworkConnectionGetStatus(_:)](systemconfiguration/scnetworkconnectiongetstatus(_:).md)
- [SCNetworkConnectionCopyExtendedStatus(_:)](systemconfiguration/scnetworkconnectioncopyextendedstatus(_:).md)
- [SCNetworkConnectionCopyStatistics(_:)](systemconfiguration/scnetworkconnectioncopystatistics(_:).md)
