Click to Rate and Give Feedback

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
<system.Net> Element (Network Settings)

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

<configuration> Element
  <system.Net> Element (Network Settings)
<system.net> 
</system.net>

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

Attributes

None.

Child Elements

Element

Description

authenticationModules

Specifies modules used to authenticate Internet requests.

connectionManagement

Specifies the maximum number of connections to an Internet host.

defaultProxy

Configures the Hypertext Transfer Protocol (HTTP) proxy server.

mailSettings

Configures Simple Mail Transport Protocol (SMTP) mail sending options.

requestCaching

Controls the caching mechanism for network requests.

settings

Configures basic network options for System.Net.

<webRequestModules> Element (Network Settings)

Specifies modules to use to request information from Internet hosts.

Parent Elements

Element

Description

configuration

Contains settings for all namespaces.

The system.net element contains settings for classes in the System.Net namespace. The settings configure authentication modules, connection management, 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.

<configuration>
  <system.net>
    <authenticationModules>
      <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" />
    </authenticationModules>
    <connectionManagement>
      <add address = "*" maxconnection = "2" />
    </connectionManagement>
    <defaultProxy>
      <proxy
        usesystemdefault = "true"
        bypassonlocal = "true"
      />
    </defaultProxy>
    <webRequestModules>
      <add prefix = "http"
        type = "System.Net.HttpRequestCreator"
      />
      <add prefix = "https"
        type = "System.Net.HttpRequestCreator"
      />
      <add prefix = "file"
        type = "System.Net.FileWebRequestCreator"
      />
    </webRequestModules>
  </system.net>
</configuration>
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker