Opc.Ua.Plc.CtrlResourceState.GetChildren C# (CSharp) Method

GetChildren() public method

Populates a list with the children that belong to the node.
public GetChildren ( ISystemContext context, IList children ) : void
context ISystemContext The context for the system being accessed.
children IList The list of children to populate.
return void
        public override void GetChildren(
            ISystemContext context,
            IList<BaseInstanceState> children)
        {
            if (m_tasks != null)
            {
                children.Add(m_tasks);
            }

            if (m_programs != null)
            {
                children.Add(m_programs);
            }

            if (m_globalVars != null)
            {
                children.Add(m_globalVars);
            }

            if (m_configuration != null)
            {
                children.Add(m_configuration);
            }

            if (m_diagnostic != null)
            {
                children.Add(m_diagnostic);
            }

            base.GetChildren(context, children);
        }