This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

UnbindObject()

Deprecated in 3.0.

Please use unbind() and unbindFrom() methods of NetObj class instead.

This function is enabled by default, but can be disabled by setting configuration parameter "NXSL.EnableContainerFunctions".
UnbindObject(parent, child): bool

Remove (unbind) object from a container.

Table 1. Parameters

parent

Parent object (NetObj referring to container, collector, facility, power domain, cooling zone, room, or infrastructure service root).

child

The NetXMS object to be unlinked from given parent object (Node or NetObj referring to node, subnet, container, or cluster).

Return

true if the object was unbound, false if the script lacks modify access to either object. Invalid parent object type causes a runtime error.

UnbindObject(FindObject("Services"), FindObject("Service_1"));    // Unlink object named "Service_1" from container "Services"