Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 1.1
.NET Framework
Reference
System.Net
WebProxy Class
Methods
 GetDefaultProxy Method
This page is specific to
Microsoft Visual Studio 2003/.NET Framework 1.1

Other versions are also available for the following:
.NET Framework Class Library
WebProxy.GetDefaultProxy Method

Reads the Internet Explorer nondynamic proxy settings.

[Visual Basic]
Public Shared Function GetDefaultProxy() As WebProxy
[C#]
public static WebProxy GetDefaultProxy();
[C++]
public: static WebProxy* GetDefaultProxy();
[JScript]
public static function GetDefaultProxy() : WebProxy;

Return Value

A WebProxy instance containing the nondynamic proxy settings from Internet Explorer 5.5.

Remarks

The GetDefaultProxy method reads the nondynamic proxy settings stored by Internet Explorer 5.5 and creates a WebProxy instance with those settings.

The GetDefaultProxy does not pick up any dynamic settings that are generated from script run by Internet Explorer, from automatic configuration entries, or from DHCP or DNS lookups.

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

© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker