Opc.Ua.Server.CoreNodeManager.GetLocalNode C# (CSharp) Method

GetLocalNode() public method

Returns a node managed by the manager with the specified node id.
public GetLocalNode ( ExpandedNodeId nodeId ) : ILocalNode
nodeId ExpandedNodeId
return ILocalNode
        public ILocalNode GetLocalNode(ExpandedNodeId nodeId)
        {
            if (nodeId == null)
            {
                return null;
            }

            // check for absolute declarations of local nodes.
            if (nodeId.IsAbsolute)
            {
                if (nodeId.ServerIndex != 0)
                {
                    return null;
                }
                 
                int namespaceIndex = this.Server.NamespaceUris.GetIndex(nodeId.NamespaceUri);
                
                if (namespaceIndex < 0 || nodeId.NamespaceIndex >= this.Server.NamespaceUris.Count)
                {
                    return null;
                }

                return GetLocalNode(new NodeId(nodeId.Identifier, (ushort)namespaceIndex));
            }

            return GetLocalNode((NodeId)nodeId);
        }
        

Same methods

CoreNodeManager::GetLocalNode ( NodeId nodeId ) : ILocalNode
CoreNodeManager::GetLocalNode ( NodeId nodeId, NodeId referenceTypeId, bool isInverse, bool includeSubtypes, QualifiedName browseName ) : ILocalNode