Important
|
Deprecated in 3.0. Please use unbind() and unbindFrom() methods of NetObj class instead. |
Note
|
This function is enabled by default, but can be disabled by setting configuration parameter "NXSL.EnableContainerFunctions". |
UnbindObject(parent, child) => void
Remove (unbind) object from a container.
parent |
Parent object ([class-netobj] referring to container object or infrastructure service root). |
child |
The NetXMS object to be unlinked from given parent object ([class-node] or [class-netobj] referring to node, subnet, container, or cluster). |
Return
None.
Example
UnbindObject(FindObject("Services"), FindObject("Service_1")); // Unlink object named "Service_1" from container "Services"