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

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

Constructor. dataPath: Local path to the database file localPathPrefix: Path to the synchronized files, ex: C:\Users\win7pro32bit\CmisSync\agency remotePathPrefix: Path on the remote server, ex: /Sites/swsdp/documentLibrary/Agency Files
public Database ( string databaseFileName, string localPathPrefix, string remotePathPrefix ) : System
databaseFileName string
localPathPrefix string
remotePathPrefix string
Результат System
        public Database(string databaseFileName, string localPathPrefix, string remotePathPrefix)
        {
            this.databaseFileName = databaseFileName;
            this.localPathPrefix = localPathPrefix;
            
            this.localPathPrefixSize = localPathPrefix.Length;
            if ( ! remotePathPrefix.Equals(Cmis.CmisUtils.CMIS_FILE_SEPARATOR))
            {
                this.localPathPrefixSize += 1;
            }

            this.remotePathPrefix = remotePathPrefix;
            this.remotePathPrefixSize = remotePathPrefix.Length;
            if (! remotePathPrefix.EndsWith(Cmis.CmisUtils.CMIS_FILE_SEPARATOR.ToString() )) {
                this.remotePathPrefixSize += 1;
            }
        }