CmisSync.Lib.Database.Database.GetSyncItemFromRemotePath C# (CSharp) Метод

GetSyncItemFromRemotePath() публичный Метод

Gets the syncitem from remote path.
public GetSyncItemFromRemotePath ( string remotePath ) : SyncItem
remotePath string Remote path.
Результат SyncItem
        public SyncItem GetSyncItemFromRemotePath(string remotePath)
        {
            if (remotePath.Equals(remotePathPrefix))
            {
                return SyncItemFactory.CreateFromPaths(localPathPrefix, localPathPrefix, remotePathPrefix, remotePathPrefix, false);
            }

            string normalizedRemotePath = RemoveRemotePrefix(remotePath);
            Dictionary<string, object> parameters = new Dictionary<string, object>();
            parameters.Add("path", normalizedRemotePath);
            string localPath = (string)ExecuteSQLFunction("SELECT localPath FROM files WHERE path=@path", parameters);
            if (string.IsNullOrEmpty(localPath))
            {
                return null;
            }

            return SyncItemFactory.CreateFromPaths(localPathPrefix, localPath, remotePathPrefix, normalizedRemotePath, false);
        }