Opc.Ua.Client.NodeCache.LoadUaDefinedTypes C# (CSharp) Method

LoadUaDefinedTypes() public method

Loads the UA defined types into the cache.
public LoadUaDefinedTypes ( ISystemContext context ) : void
context ISystemContext The context.
return void
        public void LoadUaDefinedTypes(ISystemContext context)
        {
            NodeStateCollection predefinedNodes = new NodeStateCollection();
            predefinedNodes.LoadFromBinaryResource(context, "Opc.Ua.Stack.Generated.Opc.Ua.PredefinedNodes.uanodes", typeof(NodeState).Assembly, true);
            
            for (int ii = 0; ii < predefinedNodes.Count; ii++)
            {
                BaseTypeState type = predefinedNodes[ii] as BaseTypeState;

                if (type == null)
                {
                    continue;
                }

                type.Export(context, m_nodes);
            }
        }