CmisSync.Lib.SyncItemFactory.CreateFromRemoteDocument C# (CSharp) Метод

CreateFromRemoteDocument() публичный статический Метод

Only use for documents!
public static CreateFromRemoteDocument ( string remoteDocumentPath, IDocument remoteDocument, RepoInfo repoInfo, Database database ) : SyncItem
remoteDocumentPath string
remoteDocument IDocument
repoInfo RepoInfo
database Database
Результат SyncItem
        public static SyncItem CreateFromRemoteDocument(string remoteDocumentPath, IDocument remoteDocument, RepoInfo repoInfo, Database.Database database)
        {
            string remoteFolderPath = remoteDocumentPath.Substring(0, remoteDocumentPath.LastIndexOf(CmisUtils.CMIS_FILE_SEPARATOR));
            string remoteRoot = repoInfo.RemotePath;
            string relativeRemoteDocumentPath = remoteDocumentPath.Substring(remoteRoot.Length).TrimStart(CmisUtils.CMIS_FILE_SEPARATOR);

            string remoteDocumentName = repoInfo.CmisProfile.localFilename(remoteDocument);

            RemotePathSyncItem item = new RemotePathSyncItem(relativeRemoteDocumentPath, remoteDocumentName, repoInfo, database);
            return item;
        }

Same methods

SyncItemFactory::CreateFromRemoteDocument ( string remoteDocumentPath, string localFilename, RepoInfo repoInfo, Database database ) : SyncItem