Opc.Ua.Com.Server.ComHdaBrowser.Browse C# (CSharp) Method

Browse() public method

Browses the current branch.
public Browse ( int browseType ) : IList
browseType int Type of the browse.
return IList
        public IList<string> Browse(int browseType)
        {
            Session session = m_server.Session;

            if (session == null)
            {
                throw ComUtils.CreateComException(ResultIds.E_FAIL);
            }

            string itemId = String.Empty;
            string continuationPoint = null;

            ComDaBrowseElement position = m_browseManager.GetBrowsePosition(session);

            if (position != null)
            {
                itemId = position.ItemId;
            }

            IList<ComDaBrowseElement> elements = m_browseManager.BrowseForElements(
                session,
                itemId,
                null,
                0,
                (int)BrowseElementFilter.All,
                null,
                out continuationPoint);

            return ApplyFilters(elements, browseType);
        }