File: System\Configuration\ExeConfigurationFileMap.cs
Web Access
Project: src\src\libraries\System.Configuration.ConfigurationManager\src\System.Configuration.ConfigurationManager.csproj (System.Configuration.ConfigurationManager)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace System.Configuration
{
    public sealed class ExeConfigurationFileMap : ConfigurationFileMap
    {
        public ExeConfigurationFileMap()
        {
            ExeConfigFilename = string.Empty;
            RoamingUserConfigFilename = string.Empty;
            LocalUserConfigFilename = string.Empty;
        }
 
        public ExeConfigurationFileMap(string machineConfigFileName)
            : base(machineConfigFileName)
        {
            ExeConfigFilename = string.Empty;
            RoamingUserConfigFilename = string.Empty;
            LocalUserConfigFilename = string.Empty;
        }
 
        private ExeConfigurationFileMap(string machineConfigFileName, string exeConfigFilename,
            string roamingUserConfigFilename, string localUserConfigFilename)
            : base(machineConfigFileName)
        {
            ExeConfigFilename = exeConfigFilename;
            RoamingUserConfigFilename = roamingUserConfigFilename;
            LocalUserConfigFilename = localUserConfigFilename;
        }
 
        public string ExeConfigFilename { get; set; }
 
        public string RoamingUserConfigFilename { get; set; }
 
        public string LocalUserConfigFilename { get; set; }
 
        public override object Clone()
        {
            return new ExeConfigurationFileMap(MachineConfigFilename, ExeConfigFilename, RoamingUserConfigFilename,
                LocalUserConfigFilename);
        }
    }
}