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

IsExternalReferenceAllowed() private method

Returns true if a one-way reference to external nodes is permitted.
private IsExternalReferenceAllowed ( NodeId referenceTypeId ) : bool
referenceTypeId NodeId
return bool
        private bool IsExternalReferenceAllowed(NodeId referenceTypeId)
        {                        
            // always exclude hierarchial references.
            if (m_nodes.TypeTree.IsTypeOf(referenceTypeId, ReferenceTypeIds.HierarchicalReferences))
            {
                return false;
            }

            // allow one way reference to event.
            if (m_nodes.TypeTree.IsTypeOf(referenceTypeId, ReferenceTypes.GeneratesEvent))
            {
                return true;
            }

            // all other references not permitted.
            return false;
        }