Events
Aug 13, 5 AM - Aug 13, 5 AM
Take your business to the AI frontier—join our free Microsoft event!
Learn moreThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds a new proxy module to the application.
<configuration>
<system.net>
<defaultProxy>
<module>
<module
type="type_fullname, assembly_fullname"
/>
The following sections describe attributes, child elements, and parent elements.
Attribute | Description |
---|---|
type |
The fully qualified type name (indicated by the FullName property) and the assembly name (indicated by the FullName property), separated by a comma, that implements the proxy. |
None.
Element | Description |
---|---|
defaultProxy | Configures the Hypertext Transfer Protocol (HTTP) proxy server. |
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.
The value for the type
attribute should be the class name of the module and the name of its corresponding Dynamic Link Library (DLL).
This element can be used in the application configuration file or the machine configuration file (Machine.config).
The following example registers a custom proxy class.
<configuration>
<system.net>
<defaultProxy>
<module
type="Test.CustomWebProxy, TestProxy, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b23a5c561934e385"
/>
</defaultProxy>
</system.net>
</configuration>
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Events
Aug 13, 5 AM - Aug 13, 5 AM
Take your business to the AI frontier—join our free Microsoft event!
Learn moreAsk Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in