System.Net.Configuration.ProxyElement Class

Identifies the configuration settings for Web proxy server. This class cannot be inherited.

See Also: ProxyElement Members

Syntax

public sealed class ProxyElement : System.Configuration.ConfigurationElement

Remarks

The following table shows the configuration attributes of the Proxy Element (Network Settings) configuration element to which this class corresponds.

proxyaddress

A URI that identifies the Web proxy server to use.

bypassonlocal

Determines whether the Web proxy is bypassed for local resources.

usesystemdefault

Controls whether the Internet Explorer Web proxy settings are used.

useDefaultCredentialsForScriptDownload

Controls whether default credentials are used when accessing the configuration script.

scriptDownloadInterval

Specifies the number of seconds that elapse before the configuration script is refreshed.

scriptDownloadTimeout

Specifies the number of seconds allowed for the configuration script to be downloaded.

useDefaultCredentials

Controls whether default credentials are used when accessing the Web proxy.

This class is used to specify and configure the Web proxy server to use for 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.

Requirements

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