Cmis.Utility.CmisNavigation.TryGet C# (CSharp) Method

TryGet() public method

public TryGet ( CmisPath cmisPath, ICmisObject &obj ) : bool
cmisPath CmisPath
obj ICmisObject
return bool
        public bool TryGet(CmisPath cmisPath, out ICmisObject obj)
        {
            var path = _curDir.Combine(cmisPath).ToString();
            obj = null;
            try
            {
                obj = _session.GetObjectByPath(path);
            }
            catch (CmisObjectNotFoundException)
            {
                return false;
            }
            return true;
        }