This documentation is archived and is not being maintained.

WebProxy Constructor (Uri, Boolean)

.NET Framework 1.1

Initializes a new instance of the WebProxy class with the Uri and bypass setting.

[Visual Basic]
Public Sub New( _
   ByVal Address As Uri, _
   ByVal BypassOnLocal As Boolean _
)
[C#]
public WebProxy(
   Uri Address,
 bool BypassOnLocal
);
[C++]
public: WebProxy(
   Uri* Address,
 bool BypassOnLocal
);
[JScript]
public function WebProxy(
   Address : Uri,
 BypassOnLocal : Boolean
);

Parameters

Address
A Uri containing the address of the proxy server.
BypassOnLocal
true to bypass the proxy for local addresses; otherwise, false.

Remarks

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

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

WebProxy Class | WebProxy Members | System.Net Namespace | WebProxy Constructor Overload List

Show: