Opc.Ua.Server.CustomNodeManager.IsNodeIdInNamespace C# (CSharp) Method

IsNodeIdInNamespace() protected method

Returns true if the namespace for the node id is one of the namespaces managed by the node manager.
protected IsNodeIdInNamespace ( NodeId nodeId ) : bool
nodeId NodeId The node id to check.
return bool
        protected virtual bool IsNodeIdInNamespace(NodeId nodeId)
        {
            if (NodeId.IsNull(nodeId))
            {
                return false;
            }

            // quickly exclude nodes that not in the namespace.
            for (int ii = 0; ii < m_namespaceIndexes.Length; ii++)
            {
                if (nodeId.NamespaceIndex == m_namespaceIndexes[ii])
                {
                    return true;
                }
            }

            return false;
        }