The Labs \ Source Viewer \ SSCLI \ System.Net.Configuration \ ConfigurationStrings

  1. //------------------------------------------------------------------------------
  2. // <copyright file="ConfigurationStrings.cs" company="Microsoft Corporation">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. namespace System.Net.Configuration
  16. {
  17.     using System;
  18.     using System.Configuration;
  19.     using System.Globalization;
  20.    
  21.     static internal class ConfigurationStrings
  22.     {
  23.         static string GetSectionPath(string sectionName)
  24.         {
  25.             return string.Format(CultureInfo.InvariantCulture, "{0}/{1}", ConfigurationStrings.SectionGroupName, sectionName);
  26.         }
  27.        
  28.         static string GetSectionPath(string sectionName, string subSectionName)
  29.         {
  30.             return string.Format(CultureInfo.InvariantCulture, "{0}/{1}/{2}", ConfigurationStrings.SectionGroupName, sectionName, subSectionName);
  31.         }
  32.        
  33. /*static internal string ExceptionDataAsString(string prefix, ConfigurationProperty property, object propertyValue)
  34.         {
  35.             return string.Format(CultureInfo.CurrentUICulture, SR.GetString(SR.ConfigInvalidConfigurationValue), prefix, property.Name, propertyValue == null ? SR.GetString(SR.ConfigNull) : propertyValue.ToString());
  36.         }*/       
  37.        
  38.         static internal string AuthenticationModulesSectionPath {
  39.             get { return ConfigurationStrings.GetSectionPath(ConfigurationStrings.AuthenticationModulesSectionName); }
  40.         }
  41.        
  42.         static internal string ConnectionManagementSectionPath {
  43.             get { return ConfigurationStrings.GetSectionPath(ConfigurationStrings.ConnectionManagementSectionName); }
  44.         }
  45.        
  46.         static internal string DefaultProxySectionPath {
  47.             get { return ConfigurationStrings.GetSectionPath(ConfigurationStrings.DefaultProxySectionName); }
  48.         }
  49.        
  50. /* Consider removing
  51.         static internal string MailSettingsSectionPath
  52.         {
  53.             get { return ConfigurationStrings.GetSectionPath(ConfigurationStrings.MailSettingsSectionName); }
  54.         }
  55.         */       
  56.        
  57.         static internal string SmtpSectionPath {
  58.             get { return ConfigurationStrings.GetSectionPath(ConfigurationStrings.MailSettingsSectionName, ConfigurationStrings.SmtpSectionName); }
  59.         }
  60.        
  61.         static internal string RequestCachingSectionPath {
  62.             get { return ConfigurationStrings.GetSectionPath(ConfigurationStrings.RequestCachingSectionName); }
  63.         }
  64.        
  65.         static internal string SettingsSectionPath {
  66.             get { return ConfigurationStrings.GetSectionPath(ConfigurationStrings.SettingsSectionName); }
  67.         }
  68.        
  69.         static internal string WebRequestModulesSectionPath {
  70.             get { return ConfigurationStrings.GetSectionPath(ConfigurationStrings.WebRequestModulesSectionName); }
  71.         }
  72.        
  73.         internal const string Address = "address";
  74.         internal const string AutoDetect = "autoDetect";
  75.         internal const string AlwaysUseCompletionPortsForAccept = "alwaysUseCompletionPortsForAccept";
  76.         internal const string AlwaysUseCompletionPortsForConnect = "alwaysUseCompletionPortsForConnect";
  77.         internal const string AuthenticationModulesSectionName = "authenticationModules";
  78.         internal const string BypassList = "bypasslist";
  79.         internal const string BypassOnLocal = "bypassonlocal";
  80.         internal const string CheckCertificateName = "checkCertificateName";
  81.         internal const string CheckCertificateRevocationList = "checkCertificateRevocationList";
  82.         internal const string ConnectionManagementSectionName = "connectionManagement";
  83.         internal const string DefaultCredentials = "defaultCredentials";
  84.         internal const string DefaultHttpCachePolicy = "defaultHttpCachePolicy";
  85.         internal const string DefaultFtpCachePolicy = "defaultFtpCachePolicy";
  86.         internal const string DefaultPolicyLevel = "defaultPolicyLevel";
  87.         internal const string DefaultProxySectionName = "defaultProxy";
  88.         internal const string DeliveryMethod = "deliveryMethod";
  89.         internal const string DisableAllCaching = "disableAllCaching";
  90.         internal const string DnsRefreshTimeout = "dnsRefreshTimeout";
  91.         internal const string DownloadTimeout = "downloadTimeout";
  92.         internal const string Enabled = "enabled";
  93.         internal const string EnableDnsRoundRobin = "enableDnsRoundRobin";
  94. /* Not used with Managed JScript
  95.         internal const string ExecutionTimeout = "executionTimeout";
  96. */       
  97.         internal const string Expect100Continue = "expect100Continue";
  98.         internal const string File = "file:";
  99.         internal const string From = "from";
  100.         internal const string Ftp = "ftp:";
  101.         internal const string Host = "host";
  102.         internal const string HttpWebRequest = "httpWebRequest";
  103.         internal const string Http = "http:";
  104.         internal const string Https = "https:";
  105.         internal const string Ipv6 = "ipv6";
  106.         internal const string IsPrivateCache = "isPrivateCache";
  107.         internal const string MailSettingsSectionName = "mailSettings";
  108.         internal const string MaxConnection = "maxconnection";
  109.         internal const string MaximumAge = "maximumAge";
  110.         internal const string MaximumStale = "maximumStale";
  111.         internal const string MaximumResponseHeadersLength = "maximumResponseHeadersLength";
  112.         internal const string MaximumErrorResponseLength = "maximumErrorResponseLength";
  113.         internal const string MinimumFresh = "minimumFresh";
  114.         internal const string Module = "module";
  115.         internal const string Name = "name";
  116.         internal const string Network = "network";
  117.         internal const string Password = "password";
  118.         internal const string PerformanceCounters = "performanceCounters";
  119.         internal const string PickupDirectoryFromIis = "pickupDirectoryFromIis";
  120.         internal const string PickupDirectoryLocation = "pickupDirectoryLocation";
  121.         internal const string PolicyLevel = "policyLevel";
  122.         internal const string Port = "port";
  123.         internal const string Prefix = "prefix";
  124.         internal const string Proxy = "proxy";
  125.         internal const string ProxyAddress = "proxyaddress";
  126.         internal const string RequestCachingSectionName = "requestCaching";
  127.         internal const string ScriptLocation = "scriptLocation";
  128.         internal const string SectionGroupName = "system.net";
  129.         internal const string ServicePointManager = "servicePointManager";
  130.         internal const string SettingsSectionName = "settings";
  131.         internal const string SmtpSectionName = "smtp";
  132.         internal const string Socket = "socket";
  133.         internal const string SpecifiedPickupDirectory = "specifiedPickupDirectory";
  134.         internal const string Type = "type";
  135.         internal const string UnspecifiedMaximumAge = "unspecifiedMaximumAge";
  136.         internal const string UseDefaultCredentials = "useDefaultCredentials";
  137.         internal const string UseNagleAlgorithm = "useNagleAlgorithm";
  138.         internal const string UseSystemDefault = "usesystemdefault";
  139.         internal const string UseUnsafeHeaderParsing = "useUnsafeHeaderParsing";
  140.         internal const string UserName = "userName";
  141.         internal const string WebProxyScript = "webProxyScript";
  142.         internal const string WebRequestModulesSectionName = "webRequestModules";
  143.         internal const string maximumUnauthorizedUploadLength = "maximumUnauthorizedUploadLength";
  144.     }
  145. }

Developer Fusion