다음을 통해 공유


<remove> Element for <webRequestModules>

Removes a custom Web request module from the application.

<configuration>
   <system.net>
      <webRequestModules>
         <remove>

<remove
   name = "protocol prefix"
/>

Required Attributes

Attribute Description
name The URI prefix for requests handled by this Web request module.

Remarks

The <remove> element removes the registered Web request module for the specified URI prefix that was registered earlier in the configuration file or at a higher level in the configuration hierarchy.

Example

The following example removes the Web request module for HTTP and then registers a custom Web request module for HTTP.

<configuration>
   <system.net>
      <webRequestModules>
         <remove name = "http">
         <add prefix="http" type="MyHttpModule.dll, MyHttpModule" />
      </webRequestModules>
   </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

WebRequest | webRequestModules Element | Network Settings Schema