CmisSync.Lib.Config.GetFolder C# (CSharp) Method

GetFolder() public method

Get folder based on name.
public GetFolder ( string name ) : SyncConfig.Folder
name string
return SyncConfig.Folder
        public SyncConfig.Folder GetFolder(string name)
        {
            foreach (SyncConfig.Folder folder in configXml.Folders)
            {
                if( folder.DisplayName.Equals(name))
                    return folder;
            }
            return null;
        }

Same methods

Config::GetFolder ( string RemoteUrl, string UserName, string RepositoryId ) : SyncConfig.Folder

Usage Example

Ejemplo n.º 1
0
        /// <summary>
        /// Stop syncing momentarily.
        /// </summary>
        public void Disable()
        {
            Enabled = false;
            RepoInfo.IsSuspended = true;

            //Get configuration
            Config config = ConfigManager.CurrentConfig;

            CmisSync.Lib.Config.SyncConfig.Folder syncConfig = config.GetFolder(this.Name);
            syncConfig.IsSuspended = true;
            config.Save();
        }
All Usage Examples Of CmisSync.Lib.Config::GetFolder