SCNetworkServiceSetName(_:_:)
Stores the user-specified name for the specified service.
Declaration
func SCNetworkServiceSetName(_ service: SCNetworkService, _ name: CFString?) -> BoolParameters
- service:
The network service.
- name:
The user-defined name to associate with the service.
Return Value
TRUE if the name was saved; FALSE if an error occurred.
Discussion
Although it is not technically required, the user-specified names for all services within any given set should be unique. For this reason, an error will be returned if you attempt to name two services with the same string.
See Also
Configuring Network Services
SCNetworkServiceAddProtocolType(_:_:)SCNetworkServiceCopy(_:_:)SCNetworkServiceCopyAll(_:)SCNetworkServiceCopyProtocol(_:_:)SCNetworkServiceCopyProtocols(_:)SCNetworkServiceCreate(_:_:)SCNetworkServiceEstablishDefaultConfiguration(_:)SCNetworkServiceGetEnabled(_:)SCNetworkServiceGetInterface(_:)SCNetworkServiceGetName(_:)SCNetworkServiceGetServiceID(_:)SCNetworkServiceGetTypeID()SCNetworkServiceRemove(_:)SCNetworkServiceRemoveProtocolType(_:_:)SCNetworkServiceSetEnabled(_:_:)