ConfigurationStrings.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / Configuration / ConfigurationStrings.cs / 2 / ConfigurationStrings.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 
namespace System.Net.Configuration
{ 
    using System; 
    using System.Configuration;
    using System.Globalization; 

    internal static class ConfigurationStrings
    {
        static string GetSectionPath(string sectionName) 
        {
            return string.Format(CultureInfo.InvariantCulture, @"{0}/{1}", ConfigurationStrings.SectionGroupName, sectionName); 
        } 

        static string GetSectionPath(string sectionName, string subSectionName) 
        {
            return string.Format(CultureInfo.InvariantCulture, @"{0}/{1}/{2}", ConfigurationStrings.SectionGroupName, sectionName, subSectionName);
        }
 
        /*static internal string ExceptionDataAsString(string prefix, ConfigurationProperty property, object propertyValue)
        { 
            return string.Format(CultureInfo.CurrentUICulture, SR.GetString(SR.ConfigInvalidConfigurationValue), prefix, property.Name, propertyValue == null ? SR.GetString(SR.ConfigNull) : propertyValue.ToString()); 
        }*/
 
        static internal string AuthenticationModulesSectionPath
        {
            get { return ConfigurationStrings.GetSectionPath(ConfigurationStrings.AuthenticationModulesSectionName); }
        } 

        static internal string ConnectionManagementSectionPath 
        { 
            get { return ConfigurationStrings.GetSectionPath(ConfigurationStrings.ConnectionManagementSectionName); }
        } 

        static internal string DefaultProxySectionPath
        {
            get { return ConfigurationStrings.GetSectionPath(ConfigurationStrings.DefaultProxySectionName); } 
        }
 
        /* Consider removing 
        static internal string MailSettingsSectionPath
        { 
            get { return ConfigurationStrings.GetSectionPath(ConfigurationStrings.MailSettingsSectionName); }
        }
        */
 
        static internal string SmtpSectionPath
        { 
            get { return ConfigurationStrings.GetSectionPath(ConfigurationStrings.MailSettingsSectionName, ConfigurationStrings.SmtpSectionName); } 
        }
 
        static internal string RequestCachingSectionPath
        {
            get { return ConfigurationStrings.GetSectionPath(ConfigurationStrings.RequestCachingSectionName); }
        } 

        static internal string SettingsSectionPath 
        { 
            get { return ConfigurationStrings.GetSectionPath(ConfigurationStrings.SettingsSectionName); }
        } 

        static internal string WebRequestModulesSectionPath
        {
            get { return ConfigurationStrings.GetSectionPath(ConfigurationStrings.WebRequestModulesSectionName); } 
        }
 
        internal const string Address = "address"; 
        internal const string AutoDetect = "autoDetect";
        internal const string AlwaysUseCompletionPortsForAccept = "alwaysUseCompletionPortsForAccept"; 
        internal const string AlwaysUseCompletionPortsForConnect = "alwaysUseCompletionPortsForConnect";
        internal const string AuthenticationModulesSectionName = "authenticationModules";
        internal const string BypassList = "bypasslist";
        internal const string BypassOnLocal = "bypassonlocal"; 
        internal const string CheckCertificateName = "checkCertificateName";
        internal const string CheckCertificateRevocationList = "checkCertificateRevocationList"; 
        internal const string ConnectionManagementSectionName = "connectionManagement"; 
        internal const string DefaultCredentials = "defaultCredentials";
        internal const string DefaultHttpCachePolicy = "defaultHttpCachePolicy"; 
        internal const string DefaultFtpCachePolicy = "defaultFtpCachePolicy";
        internal const string DefaultPolicyLevel = "defaultPolicyLevel";
        internal const string DefaultProxySectionName = "defaultProxy";
        internal const string DeliveryMethod = "deliveryMethod"; 
        internal const string DisableAllCaching = "disableAllCaching";
        internal const string DnsRefreshTimeout = "dnsRefreshTimeout"; 
        internal const string DownloadTimeout = "downloadTimeout"; 
        internal const string Enabled = "enabled";
        internal const string EnableDnsRoundRobin = "enableDnsRoundRobin"; 
/* Not used with Managed JScript
        internal const string ExecutionTimeout = "executionTimeout";
*/
        internal const string Expect100Continue = "expect100Continue"; 
        internal const string File = "file:";
        internal const string From = "from"; 
        internal const string Ftp = "ftp:"; 
        internal const string Host = "host";
        internal const string HttpWebRequest = "httpWebRequest"; 
        internal const string Http = "http:";
        internal const string Https = "https:";
        internal const string Ipv6 = "ipv6";
        internal const string IsPrivateCache = "isPrivateCache"; 
        internal const string MailSettingsSectionName = "mailSettings";
        internal const string MaxConnection = "maxconnection"; 
        internal const string MaximumAge = "maximumAge"; 
        internal const string MaximumStale = "maximumStale";
        internal const string MaximumResponseHeadersLength = "maximumResponseHeadersLength"; 
        internal const string MaximumErrorResponseLength = "maximumErrorResponseLength";
        internal const string MinimumFresh = "minimumFresh";
        internal const string Module = "module";
        internal const string Name = "name"; 
        internal const string Network = "network";
        internal const string Password = "password"; 
        internal const string PerformanceCounters = "performanceCounters"; 
        internal const string PickupDirectoryFromIis = "pickupDirectoryFromIis";
        internal const string PickupDirectoryLocation = "pickupDirectoryLocation"; 
        internal const string PolicyLevel = "policyLevel";
        internal const string Port = "port";
        internal const string Prefix = "prefix";
        internal const string Proxy = "proxy"; 
        internal const string ProxyAddress = "proxyaddress";
        internal const string RequestCachingSectionName = "requestCaching"; 
        internal const string ScriptLocation = "scriptLocation"; 
        internal const string SectionGroupName = "system.net";
        internal const string ServicePointManager = "servicePointManager"; 
        internal const string SettingsSectionName = "settings";
        internal const string SmtpSectionName = "smtp";
        internal const string Socket = "socket";
        internal const string SpecifiedPickupDirectory = "specifiedPickupDirectory"; 
        internal const string Type = "type";
        internal const string UnspecifiedMaximumAge = "unspecifiedMaximumAge"; 
        internal const string UseDefaultCredentials = "useDefaultCredentials"; 
        internal const string UseNagleAlgorithm = "useNagleAlgorithm";
        internal const string UseSystemDefault = "usesystemdefault"; 
        internal const string UseUnsafeHeaderParsing = "useUnsafeHeaderParsing";
        internal const string UserName = "userName";
        internal const string WebProxyScript = "webProxyScript";
        internal const string WebRequestModulesSectionName = "webRequestModules"; 
    	internal const string maximumUnauthorizedUploadLength = "maximumUnauthorizedUploadLength";
    } 
} 
namespace System.Configuration
{ 
    using System;
    using System.Globalization;

    internal static class CommonConfigurationStrings 
    {
        internal const string UriSectionName = "uri"; 
        internal const string IriParsing = "iriParsing"; 
        internal const string Idn = "idn";
        internal const string Enabled = "enabled"; 

        static string GetSectionPath(string sectionName)
        {
            return string.Format(CultureInfo.InvariantCulture, @"{0}", sectionName); 
        }
 
        static string GetSectionPath(string sectionName, string subSectionName) 
        {
            return string.Format(CultureInfo.InvariantCulture, @"{0}/{1}", sectionName, subSectionName); 
        }

        static internal string UriSectionPath
        { 
            get { return CommonConfigurationStrings.GetSectionPath(CommonConfigurationStrings.UriSectionName); }
        } 
 
    }
} 


                        

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