Home > Working with SGWorld > ISGWorld > OnContainerChanged

OnContainerChanged

This event occurs when an operation is performed on a project’s custom containers (e.g. a container is added or removed).

 

JavaScript

 

OnContainerChanged(

      Operation,

      ContainerItem)

 

C#

 

void OnContainerChanged(

      ContainerOperation Operation,

      IContainerItem6 ContainerItem)

 

C++

 

HRESULT OnContainerChanged(

      ContainerOperation Operation,

      IContainerItem6* ContainerItem)

Parameters

Operation

The specific operation for which the event should be called. The following are the possible values:

·         CO_ADDED = 0

·         CO_REMOVED = 1

·         CO_MODIFIED = 2

ContainerItem

An IContainerItem6 representing the container whose status is being checked.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.