Opc.Ua.Com.Client.ComHdaBrowserClient.ChangeBrowsePosition C# (CSharp) Method

ChangeBrowsePosition() private method

Changes the browse position.
private ChangeBrowsePosition ( OPCHDA_BROWSEDIRECTION direction, string itemId ) : bool
direction OPCHDA_BROWSEDIRECTION The direction.
itemId string The target.
return bool
        private bool ChangeBrowsePosition(OPCHDA_BROWSEDIRECTION direction, string itemId)
        {
            string methodName = "IOPCHDA_Browser.ChangeBrowsePosition";

            try
            {
                IOPCHDA_Browser server = BeginComCall<IOPCHDA_Browser>(methodName, true);
                server.ChangeBrowsePosition(direction, itemId);
                return true;
            }
            catch (Exception e)
            {
                if (ComUtils.IsUnknownError(e, ResultIds.E_FAIL))
                {
                    ComCallError(methodName, e);
                }

                return false;
            }
            finally
            {
                EndComCall(methodName);
            }
        }