Contents

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