<module> Element

Adds a new proxy module to the application.

<configuration>
   <system.net>
      <defaultProxy>
         <module>

<module
   type = "Assembly, Class"
/>

Required Attributes

Attribute Description
type The assembly and class name of the module that implements the proxy.

Remarks

The <module> element registers proxy classes that implement the IWebProxy interface. After registering the proxy class, <module> can be used to request information through the supported proxy.

Example

The following example registers a custom proxy class.

<configuration>
   <system.net>
      <defaultProxy>
         <module
            type = "MyProxy.dll, MyProx"
         />
      </defaultProxy>
   </system.net>
</configuration>

Configuration File

This element can be used in the application configuration file, the machine configuration file (Machine.config), and the publisher policy file.

See Also

<defaultProxy> Element | Network Settings Schema