Cmis.Utility.CmisPath.Combine C# (CSharp) Method

Combine() public method

public Combine ( CmisPath other ) : CmisPath
other CmisPath
return CmisPath
        public CmisPath Combine(CmisPath other)
        {
            if (other.IsAbsolutePath())
            {
                return other.Clone();
            }
            return new CmisPath(_path + CorrectSlash + other.ToString());
        }

Usage Example

Ejemplo n.º 1
0
        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);
        }
All Usage Examples Of Cmis.Utility.CmisPath::Combine