« Back to Product

Documentation

Destroy

Require: IP-Symcon >= 4.1

 void Destroy ()

Returns

No Return

Description

This function is called when deleting the instance during operation and when updating via "Module Control". The function is not called when exiting IP-Symcon.

Warning

The Destroy function is called by IP-Symcon. It must therefore be overwritten by the base class in order to add individual extensions.

Example

// IPSModuleStrict
public function Destroy(): void {

    // Do not remove this line
    parent::Destroy();

}

// IPSModule
public function Destroy() {

    // Example is identical. Please note the changed function signature.

}
Any questions?