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.

CreateContainer()

This function is enabled by default, but can be disabled by setting configuration parameter "NXSL.EnableContainerFunctions".

Deprecated in 5.0.

Please use createContainer() method of Container, Collector or ServiceRoot class instead.

CreateContainer(parent, name) => Container

Create new container under parent object with desired name.

Table 1. Parameters

parent

Parent object (NetObj referring to container, collector, facility, or infrastructure service root). Other object types cause a runtime error.

name

Name of the container to create

Return

Instance of newly created Container object or null if failed (including missing create access to the parent). If the new object cannot be linked to the parent, it is deleted and null is returned.