Opc.Ua.Com.Server.ComDaBrowseManager.BrowseForNames C# (CSharp) Method

BrowseForNames() public method

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.
return 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;
        }