ConfigurationManagerInternal.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Configuration / System / Configuration / Internal / ConfigurationManagerInternal.cs / 1 / ConfigurationManagerInternal.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Configuration.Internal { 
 
    using System.Configuration;
 
    internal sealed class ConfigurationManagerInternal : IConfigurationManagerInternal {

        // Created only through reflection
        private ConfigurationManagerInternal() { 
        }
 
        bool IConfigurationManagerInternal.SupportsUserConfig { 
            get {
                return ConfigurationManager.SupportsUserConfig; 
            }
        }

        bool IConfigurationManagerInternal.SetConfigurationSystemInProgress { 
            get {
                return ConfigurationManager.SetConfigurationSystemInProgress; 
            } 
        }
 
        string IConfigurationManagerInternal.MachineConfigPath {
            get {
                return ClientConfigurationHost.MachineConfigFilePath;
            } 
        }
 
        string IConfigurationManagerInternal.ApplicationConfigUri { 
            get {
                return ClientConfigPaths.Current.ApplicationConfigUri; 
            }
        }

        string IConfigurationManagerInternal.ExeProductName { 
            get {
                return ClientConfigPaths.Current.ProductName; 
            } 
        }
 
        string IConfigurationManagerInternal.ExeProductVersion {
            get {
                return ClientConfigPaths.Current.ProductVersion;
            } 
        }
 
        string IConfigurationManagerInternal.ExeRoamingConfigDirectory { 
            get {
                return ClientConfigPaths.Current.RoamingConfigDirectory; 
            }
        }

        string IConfigurationManagerInternal.ExeRoamingConfigPath { 
            get {
                return ClientConfigPaths.Current.RoamingConfigFilename; 
            } 
        }
 
        string IConfigurationManagerInternal.ExeLocalConfigDirectory {
            get {
                return ClientConfigPaths.Current.LocalConfigDirectory;
            } 
        }
 
        string IConfigurationManagerInternal.ExeLocalConfigPath { 
            get {
                return ClientConfigPaths.Current.LocalConfigFilename; 
            }
        }

        string IConfigurationManagerInternal.UserConfigFilename { 
            get {
                return ClientConfigPaths.UserConfigFilename; 
            } 
        }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Configuration.Internal { 
 
    using System.Configuration;
 
    internal sealed class ConfigurationManagerInternal : IConfigurationManagerInternal {

        // Created only through reflection
        private ConfigurationManagerInternal() { 
        }
 
        bool IConfigurationManagerInternal.SupportsUserConfig { 
            get {
                return ConfigurationManager.SupportsUserConfig; 
            }
        }

        bool IConfigurationManagerInternal.SetConfigurationSystemInProgress { 
            get {
                return ConfigurationManager.SetConfigurationSystemInProgress; 
            } 
        }
 
        string IConfigurationManagerInternal.MachineConfigPath {
            get {
                return ClientConfigurationHost.MachineConfigFilePath;
            } 
        }
 
        string IConfigurationManagerInternal.ApplicationConfigUri { 
            get {
                return ClientConfigPaths.Current.ApplicationConfigUri; 
            }
        }

        string IConfigurationManagerInternal.ExeProductName { 
            get {
                return ClientConfigPaths.Current.ProductName; 
            } 
        }
 
        string IConfigurationManagerInternal.ExeProductVersion {
            get {
                return ClientConfigPaths.Current.ProductVersion;
            } 
        }
 
        string IConfigurationManagerInternal.ExeRoamingConfigDirectory { 
            get {
                return ClientConfigPaths.Current.RoamingConfigDirectory; 
            }
        }

        string IConfigurationManagerInternal.ExeRoamingConfigPath { 
            get {
                return ClientConfigPaths.Current.RoamingConfigFilename; 
            } 
        }
 
        string IConfigurationManagerInternal.ExeLocalConfigDirectory {
            get {
                return ClientConfigPaths.Current.LocalConfigDirectory;
            } 
        }
 
        string IConfigurationManagerInternal.ExeLocalConfigPath { 
            get {
                return ClientConfigPaths.Current.LocalConfigFilename; 
            }
        }

        string IConfigurationManagerInternal.UserConfigFilename { 
            get {
                return ClientConfigPaths.UserConfigFilename; 
            } 
        }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK