add_permission


Description:

public bool add_permission (string ptype, string pitem, string? detail)

Adds a permission to the connection's permission list.

At this time, only the "user" permission type is supported, and pitem must be a username. See NMSettingConnection:permissionss: for more details.

Parameters:

this

the SettingConnection

ptype

the permission type; at this time only "user" is supported

pitem

the permission item formatted as required for ptype

detail

unused at this time; must be null

Returns:

true if the permission was unique and was successfully added to the list, false if ptype or pitem was invalid or it the permission was already present in the list