<system.Net> Element (Network Settings)


Contains settings that specify how the .NET Framework connects to the network.



The following sections describe attributes, child elements, and parent elements.



Child Elements

authenticationModulesSpecifies modules used to authenticate Internet requests.
connectionManagementSpecifies the maximum number of connections to an Internet host.
defaultProxyConfigures the Hypertext Transfer Protocol (HTTP) proxy server.
mailSettingsConfigures Simple Mail Transport Protocol (SMTP) mail sending options.
requestCachingControls the caching mechanism for network requests.
settingsConfigures basic network options for classes in the System.Net and related child namespaces.
<webRequestModules> Element (Network Settings)Specifies modules to use to request information from Internet hosts.

Parent Elements

configurationContains settings for all namespaces.

The <system.net> element contains settings for classes in the System.Net and related child namespaces. The settings configure authentication modules, connection management, mail settings, the proxy server, and Internet request modules for receiving information from Internet hosts.

The following code example shows a typical configuration used by System.Net classes.

      <add type = "System.Net.DigestClient" />  
      <add type = "System.Net.NegotiateClient" />  
      <add type = "System.Net.KerberosClient" />  
      <add type = "System.Net.NtlmClient" />  
      <add type = "System.Net.BasicClient" />  
      <add address = "*" maxconnection = "2" />  
        usesystemdefault = "true"  
        bypassonlocal = "true"  
      <add prefix = "http"  
        type = "System.Net.HttpRequestCreator"  
      <add prefix = "https"  
        type = "System.Net.HttpRequestCreator"  
      <add prefix = "file"  
        type = "System.Net.FileWebRequestCreator"  

Network Settings Schema