---
title: "SCNetworkConnectionStop(_:_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scnetworkconnectionstop(_:_:)"
---

# SCNetworkConnectionStop(_:_:)

Stops the connection process for the specified network connection.

## Declaration

```swift
func SCNetworkConnectionStop(_ connection: SCNetworkConnection, _ forceDisconnect: Bool) -> Bool
```

## Parameters

- `connection`: The network connection to stop.
- `forceDisconnect`: Pass TRUE to stop the connection regardless of other applications that might have interest in it.

## Return Value

Return Value TRUE if the disconnection request succeeded; FALSE (use the SCError() function to retrieve the specific error).

## See Also

### Starting and Stopping a Connection

- [SCNetworkConnectionStart(_:_:_:)](systemconfiguration/scnetworkconnectionstart(_:_:_:).md)
