---
title: "SCNetworkServiceAddProtocolType(_:_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scnetworkserviceaddprotocoltype(_:_:)"
---

# SCNetworkServiceAddProtocolType(_:_:)

Adds the network protocol of the specified type to the specified service.

## Declaration

```swift
func SCNetworkServiceAddProtocolType(_ service: SCNetworkService, _ protocolType: CFString) -> Bool
```

## Parameters

- `service`: The network service.
- `protocolType`: The type of network protocol to add to the service.

## Return Value

Return Value TRUE if the protocol was added to the service; FALSE if the protocol was already present or an error occurred.

## Discussion

Discussion The protocol configuration is set to default values that are appropriate for the interface associated with the service.

## See Also

### Configuring Network Services

- [SCNetworkServiceCopy(_:_:)](systemconfiguration/scnetworkservicecopy(_:_:).md)
- [SCNetworkServiceCopyAll(_:)](systemconfiguration/scnetworkservicecopyall(_:).md)
- [SCNetworkServiceCopyProtocol(_:_:)](systemconfiguration/scnetworkservicecopyprotocol(_:_:).md)
- [SCNetworkServiceCopyProtocols(_:)](systemconfiguration/scnetworkservicecopyprotocols(_:).md)
- [SCNetworkServiceCreate(_:_:)](systemconfiguration/scnetworkservicecreate(_:_:).md)
- [SCNetworkServiceEstablishDefaultConfiguration(_:)](systemconfiguration/scnetworkserviceestablishdefaultconfiguration(_:).md)
- [SCNetworkServiceGetEnabled(_:)](systemconfiguration/scnetworkservicegetenabled(_:).md)
- [SCNetworkServiceGetInterface(_:)](systemconfiguration/scnetworkservicegetinterface(_:).md)
- [SCNetworkServiceGetName(_:)](systemconfiguration/scnetworkservicegetname(_:).md)
- [SCNetworkServiceGetServiceID(_:)](systemconfiguration/scnetworkservicegetserviceid(_:).md)
- [SCNetworkServiceGetTypeID()](systemconfiguration/scnetworkservicegettypeid().md)
- [SCNetworkServiceRemove(_:)](systemconfiguration/scnetworkserviceremove(_:).md)
- [SCNetworkServiceRemoveProtocolType(_:_:)](systemconfiguration/scnetworkserviceremoveprotocoltype(_:_:).md)
- [SCNetworkServiceSetEnabled(_:_:)](systemconfiguration/scnetworkservicesetenabled(_:_:).md)
- [SCNetworkServiceSetName(_:_:)](systemconfiguration/scnetworkservicesetname(_:_:).md)
