Function SCNetworkSetSetName

Source
pub unsafe extern "C-unwind" fn SCNetworkSetSetName(
    set: &SCNetworkSet,
    name: Option<&CFString>,
) -> bool
Available on crate feature SCNetworkConfiguration only.
Expand description

Stores the [user specified] name for the set.

Parameter set: The network set.

Parameter name: The [user defined] name to associate with the set.

Returns: TRUE if the name was saved; FALSE if an error was encountered.

Note: although not technically required, the [user specified] names for all set should be unique. As such, an error will be returned if you attemp to name two sets with the same string.