OPC Studio User's Guide and Reference
HandleChildNodes Property (UADataVariable)



OpcLabs.ServerOpcUA Assembly > OpcLabs.EasyOpc.UA.NodeSpace Namespace > UADataVariable Class : HandleChildNodes Property
Determines whether the events from child nodes will be handled on this node as well.
Syntax
'Declaration
 
Public Overrides Property HandleChildNodes As Boolean
'Usage
 
Dim instance As UADataVariable
Dim value As Boolean
 
instance.HandleChildNodes = value
 
value = instance.HandleChildNodes
public override bool HandleChildNodes {get; set;}
public:
property bool HandleChildNodes {
   bool get() override;
   void set (    bool value) override;
}

Property Value

true if the events from child nodes should be handled; otherwise, false.

The default value of this property is False.

Remarks

The default value on data variables is false, because data variables can have other data variables as children, and with true, this data variable will be receiving events from them as well. This would be error-prone, because it would require event handlers on this data variable to test where the event came from, requiring more complicated code. There are still use cases where the data variable will handle the events from the children as well, and you can set this property back to true if you need to set.

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also