Opc.Ua.Com.Server.ComDaBrowseManager.BrowseForNames C# (CSharp) 메소드

BrowseForNames() 공개 메소드

Browses for children of the specified item.
public BrowseForNames ( Session session, BrowseElementFilter elementFilter, string nameFilter, short dataTypeFilter, int accessRightsFilter ) : IList
session Opc.Ua.Client.Session The session.
elementFilter BrowseElementFilter The element filter.
nameFilter string The name filter.
dataTypeFilter short The data type filter.
accessRightsFilter int The access rights filter.
리턴 IList
        public IList<string> BrowseForNames(
            Session session,
            BrowseElementFilter elementFilter,
            string nameFilter,
            short dataTypeFilter,
            int accessRightsFilter)
        {
            // find the id of the current element.
            string itemId = null;

            lock (m_lock)
            {
                if (m_browsePosition != null)
                {
                    itemId = m_browsePosition.ItemId;
                }
            }

            // find the names.
            IList<string> hits = m_cache.BrowseForNames(
                session,
                itemId, 
                elementFilter, 
                nameFilter, 
                dataTypeFilter, 
                accessRightsFilter);

            if (hits == null)
            {
                throw ComUtils.CreateComException(ResultIds.E_UNKNOWNITEMID);
            }

            // return the names.
            return hits;
        }