WebProxy Constructor (Uri, Boolean, String(), ICredentials)


Initializes a new instance of the WebProxy class with the specified Uri instance, bypass setting, list of URIs to bypass, and credentials.

Namespace:   System.Net
Assembly:  System (in System.dll)

Public Sub New (
	Address As Uri,
	BypassOnLocal As Boolean,
	BypassList As String(),
	Credentials As ICredentials


Type: System.Uri

A Uri instance that contains the address of the proxy server.

Type: System.Boolean

true to bypass the proxy for local addresses; otherwise, false.

Type: System.String()

An array of regular expression strings that contains the URIs of the servers to bypass.

Type: System.Net.ICredentials

An ICredentials instance to submit to the proxy server for authentication.

The WebProxy instance is initialized with the Address property set to Address, the BypassProxyOnLocal property set to BypassOnLocal, the BypassList property set to BypassList, and the Credentials property set to Credentials.

The following code example demonstrates calling this constructor.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top