SCNetworkServiceCopy(_:_:)
Returns the network service with the specified identifier.
Declaration
func SCNetworkServiceCopy(_ prefs: SCPreferences, _ serviceID: CFString) -> SCNetworkService?Parameters
- prefs:
The preferences session.
- serviceID:
The unique identifier of the network service.
Return Value
The network service from the associated preferences, or NULL if the service ID does not exist in the preferences or if an error occurred. You must release the returned value.
See Also
Configuring Network Services
SCNetworkServiceAddProtocolType(_:_:)SCNetworkServiceCopyAll(_:)SCNetworkServiceCopyProtocol(_:_:)SCNetworkServiceCopyProtocols(_:)SCNetworkServiceCreate(_:_:)SCNetworkServiceEstablishDefaultConfiguration(_:)SCNetworkServiceGetEnabled(_:)SCNetworkServiceGetInterface(_:)SCNetworkServiceGetName(_:)SCNetworkServiceGetServiceID(_:)SCNetworkServiceGetTypeID()SCNetworkServiceRemove(_:)SCNetworkServiceRemoveProtocolType(_:_:)SCNetworkServiceSetEnabled(_:_:)SCNetworkServiceSetName(_:_:)