System.Net.Configuration.DefaultProxySection Class

Represents the configuration section for Web proxy server usage. This class cannot be inherited.

See Also: DefaultProxySection Members

Syntax

public sealed class DefaultProxySection : System.Configuration.ConfigurationSection

Remarks

This class corresponds to the DefaultProxy Element (Network Settings) configuration element.

This class is used to access information about the Web proxy server used for requests made with the System.Net.WebRequest and System.Net.WebClient classes. The following table describes the configuration elements contained in the System.Net.Configuration.DefaultProxySection configuration section.

System.Net.Configuration.ProxyElement

Identifies the Web proxy server to use.

System.Net.Configuration.BypassElement

Identifies resources that are not retrieved using the proxy server.

System.Net.Configuration.ModuleElement

Identifies a custom System.Net.IWebProxy implementation.

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

The System.Net.Configuration.DefaultProxySection settings apply only to the default proxy server.

Requirements

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