System.Net.Configuration.WebRequestModuleElement Class

Represents a URI prefix and the associated class that handles creating Web requests for the prefix. This class cannot be inherited.

See Also: WebRequestModuleElement Members


public sealed class WebRequestModuleElement : System.Configuration.ConfigurationElement


Using the System.Net.WebRequest and System.Net.WebResponse classes, applications can request resources for any valid Uri. Use this configuration element to specify a module that is registered to work with the erload:System.Net.WebRequest.Create overloads to create new requests.

This class corresponds to the Add Element for WebRequest Modules (Network Settings) configuration element.

This class is used to specify modules registered to authenticate requests made with the System.Net.WebRequest and System.Net.WebClient classes.

This class provides programmatic access to information that can be stored in configuration files.

The .NET Framework version 2.0 provides Web request modules that create requests for resources with the following prefixes:


Namespace: System.Net.Configuration
Assembly: System (in System.dll)
Assembly Versions:,
Since: .NET 2.0