Example #1
0
        /// <summary>
        /// Reads the value of the specified property.
        /// </summary>
        public object ReadProperty(string itemID, PropertyID propertyID)
        {
            lock (this)
            {
                if (m_disposed)
                {
                    throw new ObjectDisposedException("Opc.Da.Cache");
                }

                CacheItem item = LookupItem(itemID);

                if (item == null)
                {
                    return(null);
                }

                return(item.ReadProperty(propertyID));
            }
        }