Opc.Ua.Server.TypeSourceTable.FindTypeSource C# (CSharp) Method

FindTypeSource() public method

Returns the source for a types that has shared components defined.
Some types define shared components which are used by all instances of the type. This table contains sources for those shared components.
public FindTypeSource ( NodeId typeId ) : BaseTypeSource
typeId NodeId
return BaseTypeSource
        public BaseTypeSource FindTypeSource(NodeId typeId)
        {
            if (NodeId.IsNull(typeId))
            {
                return null;
            }
            
            lock (m_lock)
            {
                BaseTypeSource source = null;

                if (m_sources.TryGetValue(typeId, out source))
                {
                    return source;
                }

                return null;
            }
        }